MCP server for the OEIS (Online Encyclopedia of Integer Sequences) API
MCP server for the OEIS (Online Encyclopedia of Integer Sequences) API
mcp-name: io.github.daedalus/mcp-oeis
pip install mcp-oeis
Configure in your MCP settings:
{
"mcpServers": {
"mcp-oeis": {
"command": "mcp-oeis"
}
}
}
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"
Get a sequence by its OEIS ID (e.g., "A000109" for simplicial polyhedra, "A000045" for Fibonacci).
Search OEIS sequences by providing integer terms. For example, searching [1,1,2,3,5,8] will find the Fibonacci sequence.
Search OEIS sequences by name or keyword. For example, searching "Fibonacci" will find Fibonacci-related sequences.
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/
Source-derived launch command. Check the maintainer’s required arguments and credentials before running:
uvx mcp-oeisMerge this template into ~/Library/Application Support/Claude/claude_desktop_config.json. Keep existing servers. Add any arguments, credentials, and permissions required by the maintainer; this template has not been install-tested.
{
"mcpServers": {
"io-github-daedalus-mcp-oeis": {
"command": "uvx",
"args": [
"mcp-oeis"
]
}
}
}Restart Claude Desktop completely for changes to take effect. Confirm the server appears connected in the client’s tool list, then try a read-only example from its documentation.
Claude Desktop setup referencemcp-oeispypiio.github.daedalus/mcp-oeis works with any MCP-compatible client. Copy the config snippet from the Configuration section above and add it to the file shown for your client, then restart the application.
~/Library/Application Support/Claude/claude_desktop_config.jsonRestart Claude Desktop completely for changes to take effect.~/.cursor/mcp.jsonRestart Cursor for changes to take effect..vscode/mcp.jsonReload VS Code window for changes to take effect.~/.codeium/windsurf/mcp_config.jsonRestart Windsurf for changes to take effect..mcp.jsonSave at the project root, then start Claude Code in that project and review the MCP server approval prompt. Keep real credentials out of shared files.