Skip to main content

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

Project description

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/

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mcp_oeis-0.1.0.tar.gz (5.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mcp_oeis-0.1.0-py3-none-any.whl (6.4 kB view details)

Uploaded Python 3

File details

Details for the file mcp_oeis-0.1.0.tar.gz.

File metadata

  • Download URL: mcp_oeis-0.1.0.tar.gz
  • Upload date:
  • Size: 5.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for mcp_oeis-0.1.0.tar.gz
Algorithm Hash digest
SHA256 482dbc328ee13d633636c6c91b3e1da02f6fd63f910497849b3a4ed9e82090b2
MD5 6d550286d9b961ecf8f4481cccaabe38
BLAKE2b-256 986379ce57a8d7b86712687e9fa6c5f8b79bcb6f932287d72b81b7cabcf1425b

See more details on using hashes here.

Provenance

The following attestation bundles were made for mcp_oeis-0.1.0.tar.gz:

Publisher: pypi-publish.yml on daedalus/mcp-oeis

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file mcp_oeis-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: mcp_oeis-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 6.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for mcp_oeis-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e2e968b5ec680e6800559ec12346dbad527694aa0b433076913b0508cc1d5f83
MD5 0572ee119efd77d75f76b03af3b36a29
BLAKE2b-256 a79af5f812c063dfa2c3ba77dbb78f8ac9cca0aad43a433dec52254b284da747

See more details on using hashes here.

Provenance

The following attestation bundles were made for mcp_oeis-0.1.0-py3-none-any.whl:

Publisher: pypi-publish.yml on daedalus/mcp-oeis

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page