Skip to Content
Mélodium 0.10.4 is now available!
DocsUsageMCP Server

MCP Server

melodium-mcp is an MCP  server that exposes Mélodium program validation and standard library reference lookup to MCP-compatible AI tools, so an agent writing Mélodium code can check its own work instead of guessing. See the announcement for the full list of tools it exposes.

Install

melodium-mcp is published on crates.io . With a Rust toolchain  in place:

$ cargo install melodium-mcp

This builds the binary and places it in ~/.cargo/bin (%USERPROFILE%\.cargo\bin on Windows), which the Rust installer adds to PATH by default. Once installed, melodium-mcp can be called by name.

Build from source

Alternatively, clone the repository and build the melodium-mcp package directly:

$ git clone https://gitlab.com/melodium/melodium.git $ cd melodium $ cargo build --release --package melodium-mcp

The resulting binary is at target/release/melodium-mcp (melodium-mcp.exe on Windows); move it somewhere on PATH to call it by name.

Add it to an AI tool

Claude Desktop

Edit claude_desktop_config.json:

  • Linux: ~/.config/Claude/claude_desktop_config.json
  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json
{ "mcpServers": { "melodium": { "command": "melodium-mcp" } } }

Restart Claude Desktop after saving.

Claude Code

Register it with the CLI, from any directory:

$ claude mcp add --scope user melodium -- melodium-mcp

This writes the server to ~/.claude.json under the top-level mcpServers key, making it available in every project. Drop --scope user to register it for the current project only, or use --scope project to write it to a .mcp.json file checked into the project instead.

Cursor

Edit mcp.json:

  • Global, available in every project: ~/.cursor/mcp.json
  • Project-only, share it by committing the file: .cursor/mcp.json at the project root
{ "mcpServers": { "melodium": { "command": "melodium-mcp" } } }

Codex CLI

Register it with the CLI:

$ codex mcp add melodium -- melodium-mcp

This writes to ~/.codex/config.toml:

[mcp_servers.melodium] command = "melodium-mcp"

Project-scoped servers for trusted projects go in .codex/config.toml at the project root instead.

Listed in the MCP Registry

melodium-mcp is published in the official MCP Registry  under the name tech.melodium/melodium-mcp, pointing at the melodium-mcp crate on crates.io. This lets registry-aware clients and aggregators discover and verify it directly; see the registry entry .