get_sequence

Pack: oeis · Endpoint: https://gateway.pipeworx.io/oeis/mcp

Fetch a single OEIS integer sequence by its A-number (e.g. “A000045” for the Fibonacci numbers, “A000040” for the primes). Accepts the A-number with or without the “A” prefix and zero-padding (“A000045”, “45”, and “000045” are all valid). Returns the full record: name, terms (data), comments, formulas, keywords, offset, author, and reference count. Use this to get the formula or mathematical description of a known sequence.

Parameters

NameTypeRequiredDescription
idstringyesAn OEIS A-number such as “A000045”, or just “45” / “000045”.

Example call

curl -X POST https://gateway.pipeworx.io/oeis/mcp \
  -H 'Content-Type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_sequence","arguments":{}}}'

Connect

Add this to your MCP client config, or use one-click install buttons:

{
  "mcpServers": {
    "oeis": {
      "url": "https://gateway.pipeworx.io/oeis/mcp"
    }
  }
}

See Getting Started for client-specific install steps.

Regenerated from source · build June 8, 2026