daedalus avatar

Mcp Oeis

daedalus/mcp-oeis

Connects Claude to the Online Encyclopedia of Integer Sequences through three straightforward tools. You can fetch sequences by their OEIS ID (like A000045 for Fibonacci), search by a list of integer terms to identify unknown sequences, or search by name and keywords to explore related sequences. Reach for this when you're working with mathematical sequences and need quick lookups or pattern identification without leaving your conversation. The Python API is also available standalone if you want to integrate OEIS searches into your own code. Built on the official OEIS API with clean stdio transport.

tools
3
transport
STDIO
last updated
Mar 28, 2026

Tools

3 tools

Public tool metadata for what this MCP can expose to an agent.

get_sequence_by_idGet a sequence by its OEIS ID (e.g., "A000109" for simplicial polyhedra, "A000045" for Fibonacci).

Get a sequence by its OEIS ID (e.g., "A000109" for simplicial polyhedra, "A000045" for Fibonacci).

No parameter schema in public metadata yet.

search_by_termsSearch OEIS sequences by providing integer terms. For example, searching [1,1,2,3,5,8] will find the Fibonacci sequence.

Search OEIS sequences by providing integer terms. For example, searching [1,1,2,3,5,8] will find the Fibonacci sequence.

No parameter schema in public metadata yet.

search_by_nameSearch OEIS sequences by name or keyword. For example, searching "Fibonacci" will find Fibonacci-related sequences.

Search OEIS sequences by name or keyword. For example, searching "Fibonacci" will find Fibonacci-related sequences.

No parameter schema in public metadata yet.

Sponsors

Readme

mcp-oeis

MCP server for the OEIS (Online Encyclopedia of Integer Sequences) API

mcp-name: io.github.daedalus/mcp-oeis

PyPI Python Ruff

Install

pip install mcp-oeis

Usage

As an MCP Server

Configure in your MCP settings:

{
  "mcpServers": {
    "mcp-oeis": {
      "command": "mcp-oeis"
    }
  }
}

Python API

from mcp_oeis import mcp

# Get a sequence by ID
result = mcp.get_sequence_by_id("A000109")
print(result["terms"])  # [1, 1, 1, 2, 5, 14, ...]

# Search by terms
results = mcp.search_by_terms([1, 1, 2, 3, 5, 8])
print(results[0]["name"])  # "Fibonacci numbers"

# Search by name
results = mcp.search_by_name("prime")
print(results[0]["id"])  # "A000040"

MCP Tools

get_sequence_by_id

Get a sequence by its OEIS ID (e.g., "A000109" for simplicial polyhedra, "A000045" for Fibonacci).


View the full README on GitHub

Details

Repository
github.com/daedalus/mcp-oeis
Package
mcp-oeis
Transport
STDIO
Registry
MCP registry, active

More from daedalus