MCP Server

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

Local serverstdioPython

What is the MCP MCP server?

MCP server for the OEIS (Online Encyclopedia of Integer Sequences) API. That is what the mcp mcp server brings to an AI assistant: the same capability, reachable through the Model Context Protocol rather than a separate app or dashboard.

The short version

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

The tools it exposes

The server publishes 3 tools. What each one is for:

  • 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

Getting it running

Installation goes through your MCP client rather than a global install: point it at mcp-oeis on PyPI and it is fetched when the client starts. The copy-paste blocks for Claude Desktop, Claude Code and Cursor are further down this page.

How it compares

Plenty of developer tooling servers cover similar ground. The differences that matter in practice are scope of access and how much setup stands between you and a working tool call. MCP's toolset — get_sequence_by_id, search_by_terms, search_by_name — is a fair guide to whether it matches your workflow. It is maintained by daedalus; worth a glance at recent repository activity before you build anything load-bearing on it.

SyncDev reviews every entry in this directory against the project's own documentation before publishing, and revisits them as servers change.

Things to watch

  • It runs with your machine's permissions. That is convenient and also the reason to think about what you point it at before you approve a tool call.
  • Keep per-call confirmation enabled while you learn its behaviour; it is the cheapest safeguard you have.

Available tools

ToolWhat it does
get_sequence_by_idGet a sequence by its OEIS ID (e.g., "A000109" for simplicial polyhedra, "A000045" for Fibonacci).
search_by_termsSearch OEIS sequences by providing integer terms. For example, searching [1,1,2,3,5,8] will find the Fibonacci sequence.
search_by_nameSearch OEIS sequences by name or keyword. For example, searching "Fibonacci" will find Fibonacci-related sequences.

How to install the MCP MCP server

{
  "mcpServers": {
    "oeis": {
      "command": "uvx",
      "args": ["mcp-oeis"]
    }
  }
}

Add to claude_desktop_config.json, then restart Claude Desktop.

Example prompts to try

  • Use MCP to get sequence by id.
  • Use MCP to search by terms.
  • Use MCP to search by name.

Frequently asked questions

It connects MCP to MCP-compatible AI assistants such as Claude and Cursor, exposing 3 tools (get_sequence_by_id, search_by_terms, search_by_name) that the assistant can call on your behalf. Instead of copying data back and forth by hand, the assistant works with MCP directly.