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
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
482dbc328ee13d633636c6c91b3e1da02f6fd63f910497849b3a4ed9e82090b2
|
|
| MD5 |
6d550286d9b961ecf8f4481cccaabe38
|
|
| BLAKE2b-256 |
986379ce57a8d7b86712687e9fa6c5f8b79bcb6f932287d72b81b7cabcf1425b
|
Provenance
The following attestation bundles were made for mcp_oeis-0.1.0.tar.gz:
Publisher:
pypi-publish.yml on daedalus/mcp-oeis
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
mcp_oeis-0.1.0.tar.gz -
Subject digest:
482dbc328ee13d633636c6c91b3e1da02f6fd63f910497849b3a4ed9e82090b2 - Sigstore transparency entry: 1190684006
- Sigstore integration time:
-
Permalink:
daedalus/mcp-oeis@0ba7f78fb32c5bbb7cc8cfd22638df6858bf22a0 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/daedalus
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi-publish.yml@0ba7f78fb32c5bbb7cc8cfd22638df6858bf22a0 -
Trigger Event:
release
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e2e968b5ec680e6800559ec12346dbad527694aa0b433076913b0508cc1d5f83
|
|
| MD5 |
0572ee119efd77d75f76b03af3b36a29
|
|
| BLAKE2b-256 |
a79af5f812c063dfa2c3ba77dbb78f8ac9cca0aad43a433dec52254b284da747
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
mcp_oeis-0.1.0-py3-none-any.whl -
Subject digest:
e2e968b5ec680e6800559ec12346dbad527694aa0b433076913b0508cc1d5f83 - Sigstore transparency entry: 1190684009
- Sigstore integration time:
-
Permalink:
daedalus/mcp-oeis@0ba7f78fb32c5bbb7cc8cfd22638df6858bf22a0 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/daedalus
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi-publish.yml@0ba7f78fb32c5bbb7cc8cfd22638df6858bf22a0 -
Trigger Event:
release
-
Statement type: