loading…
Search for a command to run...
loading…
Integrates the levelang.app translation API with AI assistants to provide translations constrained to specific learner proficiency levels. It supports multiple
Integrates the levelang.app translation API with AI assistants to provide translations constrained to specific learner proficiency levels. It supports multiple languages and allows users to control translation styles and moods while dynamically discovering available language configurations.
An MCP server that exposes the levelang.app translation API to AI assistants. Unlike standard translators that always produce native-speaker complexity, levelang.app constrains translations to the learner's proficiency level.
levelang://languages and levelang://languages/{code} for pulling language configs into contextYou need two things: the MCP server URL and an API key. No local setup required.
Add to .cursor/mcp.json:
{
"mcpServers": {
"levelang": {
"url": "https://your-mcp-server-url/mcp",
"headers": {
"Authorization": "Bearer your-api-key"
}
}
}
}
Add to ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows):
{
"mcpServers": {
"levelang": {
"url": "https://your-mcp-server-url/mcp",
"headers": {
"Authorization": "Bearer your-api-key"
}
}
}
}
Restart Claude Desktop. A hammer icon in the chat input indicates MCP tools are available.
Once connected, ask your AI assistant things like:
Translate "I would like to order a coffee, please" into French at the beginner level.
What languages does Levelang support?
Compare how "I'm worried the new rules might prevent us from finishing on time" translates into German at beginner vs advanced level.
The settings below are for running the MCP server (local development or self-hosting). End users connecting via URL do not need these.
All configuration is through environment variables. When running locally via stdio, these go in the env block of your MCP client config.
| Variable | Required | Default | Description |
|---|---|---|---|
LEVELANG_API_BASE_URL |
No | http://localhost:8000/api/v1 |
Levelang backend URL |
LEVELANG_API_KEY |
Depends | — | Service key (sk_xxx) for backend auth |
MCP_TRANSPORT |
No | stdio |
Transport: stdio or streamable-http |
MCP_PORT |
No | 8463 |
Port when using HTTP transport |
MCP_API_KEYS |
No | — | Comma-separated valid API keys for HTTP auth |
LEVELANG_API_KEY is required when connecting to a remote backend (staging/production). It may be omitted for local development if the backend has auth disabled.
MCP_API_KEYS controls client authentication for the HTTP transport. When set, clients must send Authorization: Bearer <key> with a key from this list. When empty or unset, auth is disabled (open access). This has no effect on stdio transport.
For local development you can run the MCP server as a subprocess instead of connecting via URL. This requires Python 3.12+, uv, and a running Levelang backend.
git clone https://github.com/beverage/levelang-mcp.git
cd levelang-mcp
uv sync
{
"mcpServers": {
"levelang": {
"command": "uv",
"args": [
"run",
"--directory", "/absolute/path/to/levelang-mcp",
"python", "-m", "levelang_mcp"
],
"env": {
"LEVELANG_API_BASE_URL": "http://localhost:8000/api/v1"
}
}
}
}
uv sync
git config core.hooksPath .githooks
This enables pre-commit (auto-fix lint + format) and pre-push (lint + format check + tests) hooks.
uv run pytest tests/ -v
The MCP Inspector provides a web UI for browsing and invoking tools and resources:
npx @modelcontextprotocol/inspector uv run --directory /path/to/levelang-mcp python -m levelang_mcp
src/levelang_mcp/
├── __main__.py # Entrypoint (python -m levelang_mcp)
├── server.py # MCP tools and resources
├── auth.py # API-key auth middleware for HTTP transport
├── client.py # Async HTTP client for the Levelang API
├── config.py # Environment variable loading
└── formatting.py # API response → human-readable text
tests/
├── test_auth.py # Auth middleware and config tests
├── test_client.py # HTTP client tests (mocked)
├── test_formatting.py
└── test_tools.py # Tool integration tests (mocked)
MCP Client levelang-mcp Levelang Backend
(Claude, Cursor, ◄── MCP/stdio ──► (this) ─── HTTP ──► (FastAPI)
Claude Code) POST /translate
GET /languages/details
GET /languages/{code}
The MCP server is a stateless wrapper. It translates MCP tool calls into HTTP requests to the Levelang backend and formats responses as human-readable text for the LLM. It does not share code, database connections, or deployment with the backend.
MIT
Добавь это в claude_desktop_config.json и перезапусти Claude Desktop.
{
"mcpServers": {
"levelang-mcp-server": {
"command": "npx",
"args": []
}
}
}Web content fetching and conversion for efficient LLM usage.
Retrieval from AWS Knowledge Base using Bedrock Agent Runtime.
Provides auto-configuration for setting up an MCP server in Spring Boot applications.
A very streamlined mcp client that supports calling and monitoring stdio/sse/streamableHttp, and can also view request responses through the /logs page. It also