Skip to content
MCP server

Legesher

Translate Python between English keywords and your own language, verified by round trip

Runs locallyStatus and history
Install
Pricing
Open source
Platforms
CLI, self-hosted
Runs
Locally
Version
0.3.0
Listing updated
3 days ago

About Legesher

Legesher is an open-source MCP server for developer tools. It runs locally on your machine and is started by your AI client.

Legesher's server lets an assistant move Python source between its English keywords and a natural language, so learners can read and write code in the words they think in while the program still runs the same. Translation between two non-English languages pivots through English, and the result says so with pivoted: true.

It runs locally against the installed Legesher engine, which ships its language packs in legesher-i18n. No account is needed and calls are served on your machine. Validation is static only: code is compiled but never executed, and error results carry a machine code with no stack traces or file paths.

Beyond translation it offers a legibility report for whole codebases, identifier glossary validation, and resources and prompts for explaining code in a given language. The README describes using the server as free forever under Apache-2.0.

Install

Run in a terminal

claude mcp add legesher-mcp -- uvx legesher-mcp

Add to claude_desktop_config.json

{
  "mcpServers": {
    "legesher-mcp": {
      "command": "uvx",
      "args": [
        "legesher-mcp"
      ]
    }
  }
}
Install in CursorOpens Cursor, which asks you to confirm. Or add it by hand:

Add to ~/.cursor/mcp.json

{
  "mcpServers": {
    "legesher-mcp": {
      "command": "uvx",
      "args": [
        "legesher-mcp"
      ]
    }
  }
}
Install in VS CodeOpens VS Code, which asks you to confirm. Or add it by hand:

Add to .vscode/mcp.json

{
  "servers": {
    "legesher-mcp": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "legesher-mcp"
      ]
    }
  }
}

Add to ~/.codeium/windsurf/mcp_config.json

{
  "mcpServers": {
    "legesher-mcp": {
      "command": "uvx",
      "args": [
        "legesher-mcp"
      ]
    }
  }
}

Add to your client's MCP settings (most use this shape)

{
  "mcpServers": {
    "legesher-mcp": {
      "command": "uvx",
      "args": [
        "legesher-mcp"
      ]
    }
  }
}

Configuration

  • LEGESHER_MCP_LOG_LEVELLog level for troubleshooting. Quiet (WARNING) when unset.

Tools this server provides (6)

Taken from the project documentation; the running server may differ.

translate_to_native
Translates Python source into a natural language, files or fragments.
translate_to_source
Translates native-language code back to English-keyword Python.
explain_in_language
Returns keyword mappings and a validation result so an assistant can explain code in a language.
lookup_keyword_mapping
Looks up how terms or the full mapping render in a language.
map_existing_codebase
Produces a legibility report for translating a set of files.
validate_identifier_translations
Checks proposed identifier translations for conflicts and returns the clean subset.

What it does

Two-way translation
Convert Python to a native language and back to English-keyword source.
Explain in a language
Returns keyword mappings and static validation so the model can explain code in your language.
Keyword lookup
Look up how specific terms render in a chosen language.
Codebase legibility report
Shows per-file coverage and unmapped constructs for translating a set of files.
Identifier validation
Flags drift, collisions, reserved names and unsafe text in proposed translations.
Static checks only
Code is parsed with compile() and never executed.

Good for

  • Teach programming in a student's first language
  • Translate a script so a colleague can read it
  • Estimate the effort to localize an existing codebase
  • Keep a consistent glossary of translated identifiers

Pricing

Open source

Local server free under Apache-2.0; some hosted features need an account

Prices change. Check legesher.io before you buy.

Legesher FAQ

How do I install it?

Run `uvx legesher-mcp`, or `pip install` the package named legesher-mcp.

Does it execute my code?

No. Validation uses compile() only.

Is an account required?

Not for the local server; some capabilities need an account on the hosted instance.

What licence?

Apache-2.0.

Is Legesher free?

Yes. Legesher is open source, so you can use and self-host it for free.

How do I add Legesher to Claude Code?

Run this command in your terminal: claude mcp add legesher-mcp -- uvx legesher-mcp

What are the best alternatives to Legesher?

The closest alternatives to Legesher are REA, Codebase Memory, GitHub, Serena MCP: the IDE for your agent and XERJ.

Alternatives to Legesher

  1. REA

    MCP server

    CLI and MCP server that lets coding agents reverse engineer apps and binaries

    Runs locally
    • Open source
    • 464K GitHub stars
    • Developer tools
  2. Codebase Memory

    MCP server

    Local MCP server that builds a code knowledge graph for AI coding agents

    Runs locally
    • Open source
    • 48.7K GitHub stars
    • Knowledge and memory
  3. GitHub

    MCP server

    Official MCP server connecting AI assistants to GitHub repos, issues and workflows

    Not checked yet
    • Remote
    • Open source
    • 34.5K GitHub stars
    • Developer tools
  4. MCP toolkit giving coding agents symbol-level code retrieval and editing

    Runs locally
    • Open source
    • 31.5K GitHub stars
    • Developer tools
  5. XERJ

    MCP server

    Local search engine for AI agents with cited answers over your code and docs

    Runs locally
    • Open source
    • 19.2K GitHub stars
    • Knowledge and memory
  6. Ouroboros

    MCP server

    Spec-first layer that pins requirements and verifies results of AI coding agent work

    Runs locally
    • Open source
    • 6.4K GitHub stars
    • Developer tools