{
  "markdown": "# mcp-oeis\n\n> MCP server for the OEIS (Online Encyclopedia of Integer Sequences) API\n\nmcp-name: io.github.daedalus/mcp-oeis\n\n[![PyPI](https://img.shields.io/pypi/v/mcp-oeis.svg)](https://pypi.org/project/mcp-oeis/)\n[![Python](https://img.shields.io/pypi/pyversions/mcp-oeis.svg)](https://pypi.org/project/mcp-oeis/)\n[![Ruff](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json)](https://github.com/astral-sh/ruff)\n\n## Install\n\n```bash\npip install mcp-oeis\n```\n\n## Usage\n\n### As an MCP Server\n\nConfigure in your MCP settings:\n\n```json\n{\n  \"mcpServers\": {\n    \"mcp-oeis\": {\n      \"command\": \"mcp-oeis\"\n    }\n  }\n}\n```\n\n### Python API\n\n```python\nfrom mcp_oeis import mcp\n\n# Get a sequence by ID\nresult = mcp.get_sequence_by_id(\"A000109\")\nprint(result[\"terms\"])  # [1, 1, 1, 2, 5, 14, ...]\n\n# Search by terms\nresults = mcp.search_by_terms([1, 1, 2, 3, 5, 8])\nprint(results[0][\"name\"])  # \"Fibonacci numbers\"\n\n# Search by name\nresults = mcp.search_by_name(\"prime\")\nprint(results[0][\"id\"])  # \"A000040\"\n```\n\n## MCP Tools\n\n### get_sequence_by_id\nGet a sequence by its OEIS ID (e.g., \"A000109\" for simplicial polyhedra, \"A000045\" for Fibonacci).\n\n### search_by_terms\nSearch OEIS sequences by providing integer terms. For example, searching [1,1,2,3,5,8] will find the Fibonacci sequence.\n\n### search_by_name\nSearch OEIS sequences by name or keyword. For example, searching \"Fibonacci\" will find Fibonacci-related sequences.\n\n## Development\n\n```bash\ngit clone https://github.com/daedalus/mcp-oeis.git\ncd mcp-oeis\npip install -e \".[test]\"\n\n# run tests\npytest\n\n# format\nruff format src/ tests/\n\n# lint\nruff check src/ tests/\n\n# type check\nmypy src/\n```\n",
  "bytes": 1701,
  "sha": "4e99c3e36af732cdf590a190c672fe5c2c0f003a6929254d56088b64d8496abb",
  "repo_slug": "daedalus/mcp-oeis",
  "fonte": "repo",
  "truncated": false,
  "api": "https://agentalog.com/api/listings/mcp_io_github_daedalus_mcp_oeis_a1e5ff59/readme"
}