loda-mcp

loda-lang/loda-mcp

3.3

If you are the rightful owner of loda-mcp and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.

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®).

Tools
7
Resources
0
Prompts
0

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

ToolDescriptionPrimary Use Case
get_programGet details about a LODA program by IDAnalyze program implementations
search_programsSearch for LODA programsFind programs by keyword or ID
eval_programEvaluate a LODA programTest and validate program correctness
submit_programSubmit a new LODA programContribute new implementations
get_sequenceGet details about an integer sequence by IDResearch mathematical sequences
search_sequencesSearch for integer sequencesFind sequences by keyword or ID
get_statsView LODA project summary statisticsUnderstand project scope and growth
get_keywordsList all keywords and their descriptionsExplore available keywords
get_submittersList all submitters and their number of programsSee top contributors

Quick Start

Prerequisites

  • Node.js 18.0.0 or higher
  • npm 8.0.0 or higher

Installation

  1. Install dependencies:

    npm install
    
  2. Build the server:

    npm run build
    
  3. Test the installation:

    npm run test-connection  # Test API connectivity
    npm start                # Start the server locally
    
  4. Run 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 build

Configuration

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

VariableDescriptionDefault
LODA_API_BASE_URLLODA API endpoint overridehttps://api.loda-lang.org/v2