io.github.daedalus/mcp-oeis
MCP server for the OEIS (Online Encyclopedia of Integer Sequences) API
Versions
0.1.0latestTools 3
get_sequence_by_id Get a sequence by its OEIS ID (e.g., "A000109" for simplicial polyhedra, "A000045" for Fibonacci). Args: id: The OEIS ID (e.g., "A000109", "A000045") Returns: Dictionary containing: - id: The OEIS ID - name: Sequence name/description - terms: List of integers in the sequence - offset: Index offset (where sequence starts) - description: Full description - comments: Additional comments - references: Literature references - links: Related links - formula: Formula if available - example: Example terms Raises: ValueError: If the ID format is invalid or sequence not found
search_by_terms Search OEIS sequences by providing integer terms. For example, searching [1,1,2,3,5,8] will find the Fibonacci sequence. Args: terms: List of integers to search for (e.g., [1,1,2,3,5,8]) max_results: Maximum number of results to return (default 10) Returns: List of matching sequences, each containing: - id: The OEIS ID - name: Sequence name - terms: First few terms of the sequence Raises: ValueError: If terms list is empty
search_by_name Search OEIS sequences by name or keyword. For example, searching "Fibonacci" will find Fibonacci-related sequences. Args: query: Search query (e.g., "Fibonacci", "prime", "Catalan") max_results: Maximum number of results to return (default 10) Returns: List of matching sequences, each containing: - id: The OEIS ID - name: Sequence name - terms: First few terms of the sequence Raises: ValueError: If query is empty
Permissions 1
network medium