LODA API MCP Server
OfficialThe LODA API MCP Server enables comprehensive interaction with LODA programs and OEIS integer sequences through a full-featured API.
Explore integer sequences: Retrieve detailed information about specific OEIS sequences by their A-number identifiers or search using keywords and names
Discover LODA programs: Access individual LODA assembly language programs by ID or search using keywords with pagination support
Execute LODA programs: Run LODA code to compute sequence terms with configurable term count and offset
Submit new programs: Contribute LODA program implementations for specific sequences
Monitor project statistics: View summary statistics about the LODA project's scope, growth, and browse all contributors with their contribution counts
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@LODA API MCP Server search for sequences containing prime numbers"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
LODA MCP Server
A Model Context Protocol (MCP) server for the LODA Language API, providing seamless access to the LODA language and integer sequences from the On-Line Encyclopedia of Integer Sequences® (OEIS®).
Available Tools
Tool | Description | Primary Use Case |
| Get details about a LODA program by ID | Analyze program implementations |
| Search for LODA programs | Find programs by keyword or ID |
| Evaluate a LODA program | Test and validate program correctness |
| Submit a new LODA program | Contribute new implementations |
| Get details about an integer sequence by ID | Research mathematical sequences |
| Search for integer sequences | Find sequences by keyword or ID |
| View LODA project summary statistics | Understand project scope and growth |
| List all keywords and their descriptions | Explore available keywords |
| List all submitters and their number of programs | See top contributors |
Related MCP server: Affine Earth Math Court Remote
Quick Start
Prerequisites
Node.js 18.0.0 or higher
npm 8.0.0 or higher
Installation
Install dependencies:
npm installBuild the server:
npm run buildTest the installation:
npm run test-connection # Test API connectivity npm start # Start the server locallyRun in HTTP server mode:
npm start -- -p 8080
Development Workflow
# Development with auto-rebuild
npm run dev
# Type checking
npm run type-check
# Clean build
npm run clean && npm run buildConfiguration
Claude Desktop Integration
Add to your Claude Desktop configuration file:
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"loda-api": {
"command": "node",
"args": ["/absolute/path/to/your/loda-mcp/build/index.js"],
"env": {
"LODA_API_BASE_URL": "https://api.loda-lang.org/v2"
}
}
}
}Environment Variables
Variable | Description | Default |
| LODA API endpoint override |
|
Available Tools
8 toolseval_programC
Evaluate a LODA program and return sequence terms.
Inputs: code (required), o, t.
get_programC
Get details about a LODA program by ID (e.g. A000045)
Inputs: id (required).
get_sequenceC
Get details about an integer sequence by ID (e.g. A000045)
Inputs: id (required).
get_statsC
Get statistics summary for the LODA project.
Inputs: no named parameters.
get_submittersB
List all submitters and their number of programs.
Inputs: no named parameters.
search_programsC
Search for LODA programs by keywords, ID, or name.
Inputs: q (required), limit, skip.
search_sequencesC
Search for integer sequences by keywords, ID, or name.
Inputs: q (required), limit, skip.
submit_programC
Submit a new LODA program for a sequence.
Inputs: code (required), id (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 8 tools
Every tool has a clearly distinct purpose with no ambiguity. For example, eval_program evaluates programs, get_program and get_sequence retrieve specific resources, search_programs and search_sequences perform searches, and submit_program handles submissions. The descriptions clearly differentiate between programs and sequences, preventing misselection.
All tool names follow a consistent verb_noun pattern using snake_case, such as eval_program, get_program, search_sequences, and submit_program. This predictability makes it easy for agents to understand and use the tool set without confusion from mixed conventions.
With 8 tools, the server is well-scoped for managing LODA programs and sequences. Each tool earns its place by covering distinct operations like evaluation, retrieval, searching, submission, and statistics, without being overly sparse or bloated for the domain.
The tool set provides strong coverage for core workflows, including CRUD-like operations (e.g., get, search, submit) and evaluation. A minor gap is the lack of update or delete tools for programs or sequences, but agents can still work effectively with the available tools for most tasks in the LODA domain.
Maintenance
Related MCP Connectors
Identify integer sequences by terms, search the OEIS, read formulas, programs, b-files, cross-refs.
Deterministic research automation with live OpenAlex search and reusable workflow programs.
Write, compile and run eLucid8 programs: equations over named dimensions, computed on demand.
Search 64 ISAs, system registers, encodings, timings, and 16k+ chips; decode machine words.
Related MCP Servers
- AlicenseAqualityBmaintenanceAirtight math tools an AI uses over MCP — 3.7M-theorem search, PSLQ constant ID, OEIS, real Lean kernel checks, applicability checklists. No LLM inside, no API key.1231 PyPI14Apache 2.0
- FlicenseNot gradedqualityBmaintenanceEnables agent builders to run deterministic, integer-only mathematical operations while refusing floats, with sealed and verifiable integer-based results.2-
- AlicenseNot gradedqualityCmaintenanceEnables searching and retrieving integer sequences from the On-Line Encyclopedia of Integer Sequences by passing a list of terms, an A-number, or free-text keywords. Returns full sequence records including names, terms, comments, formulas, keywords, offset, and author, with paginated search results.62 npmMIT
- AlicenseNot gradedqualityBmaintenanceEnables identifying integer sequences from observed terms, searching the On-Line Encyclopedia of Integer Sequences with its native query syntax, and reading entry formulas, programs, comments, b-file terms, and cross-references. Runs over STDIO or Streamable HTTP with no API key, returning linked, provenance-bearing results.102 npm2Apache 2.0