mcpField
M
mcp-oeis

mcp-oeis

Local
github.com/daedalusScience & Education1Updated 27w ago

About mcp-oeis

mcp-oeis is an MCP server that gives clients access to the Online Encyclopedia of Integer Sequences (OEIS) API. It supports lookup by sequence ID and searches by terms or name.

Key features

  1. 01Retrieve a sequence by OEIS ID
  2. 02Search sequences by integer terms
  3. 03Search sequences by name or keyword

Use cases

  1. 01Look up sequence data from an OEIS ID
  2. 02Identify sequences from a list of terms
  3. 03Find sequences related to a name or topic

MCP support

Exposes tools for retrieving OEIS sequences by ID and searching by terms or name to MCP clients.

Configuration

Local server config is the same for every client. Copy it into your client’s MCP config file.

mcp.json · Universal config
{
"mcpServers": {
"daedalus-mcp-oeis": {
"command": "uvx",
"args": [
"mcp-oeis"
]
}
}
}
Run commanduvx mcp-oeis

Local servers need a runtime on your machine (e.g. Node.js 18+). Config file locations differ by client; see your client’s docs.

Packages
pypimcp-oeis0.1.0

Tools

3

Saved tool list · updated 2w ago

ParameterTypeRequiredDescription
idstringYesThe OEIS ID (e.g., "A000109", "A000045")

Details

From the project 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).

search_by_terms

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

search_by_name

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

Development

git clone https://github.com/daedalus/mcp-oeis.git
cd mcp-oeis
pip install -e ".[test]"

# run tests
pytest

# format
ruff format src/ tests/

# lint
ruff check src/ tests/

# type check
mypy src/

Comments

Markdown supported

New to MCP?

From what the protocol is to installing your first server, these answers cover most first questions.

An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.