mcp-oeis
MCP server for the OEIS (Online Encyclopedia of Integer Sequences) API
mcp-name: io.github.daedalus/mcp-oeis
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/
Metadata
Release files for mcp-oeis 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| mcp_oeis-0.1.0.tar.gz | 5.2 kB | With provenance | Details for mcp_oeis-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| mcp_oeis-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for mcp_oeis-0.1.0-py3-none-any.whl |
Total release size: 11.6 kB
Release files / mcp_oeis-0.1.0.tar.gz
| Download URL | mcp_oeis-0.1.0.tar.gz |
|---|---|
| Size | 5.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
482dbc328ee13d633636c6c91b3e1da02f6fd63f910497849b3a4ed9e82090b2
|
|
BLAKE2b-256 checksum How to use checksums |
986379ce57a8d7b86712687e9fa6c5f8b79bcb6f932287d72b81b7cabcf1425b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Mar 28, 2026.
Transparency logRelease files / mcp_oeis-0.1.0-py3-none-any.whl
| Download URL | mcp_oeis-0.1.0-py3-none-any.whl |
|---|---|
| Size | 6.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e2e968b5ec680e6800559ec12346dbad527694aa0b433076913b0508cc1d5f83
|
|
BLAKE2b-256 checksum How to use checksums |
a79af5f812c063dfa2c3ba77dbb78f8ac9cca0aad43a433dec52254b284da747
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Mar 28, 2026.
Transparency logSecurity for mcp-oeis 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for mcp_oeis-0.1.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Mar 28, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.