Lantern hosts an MCP server, so an AI agent — Claude Code, Claude Desktop and others — can read and write a project’s translations in conversation. There is nothing to install.
Connect with a token#
- Create an
lk_token on the project’s API tab. - Point your MCP client at the endpoint:
{ "mcpServers": { "lantern": { "url": "https://lantern.abyss-inn.ch/api/v1/mcp", "headers": { "Authorization": "Bearer lk_…" } } } } - That’s all: the token already identifies the project.
Tools#
| Tool | Does | Scope needed |
|---|---|---|
list_projects | The projects this connection can reach | — |
list_languages | A project’s languages: locale, display name, default | — |
get_translations | Read translations (locale?, nested?, format?) | — |
create_key | Create a key (placeholders?) | key:create |
set_translations | Set values for a locale (createMissingKeys?) and return warnings | translation:edit |
createMissingKeys also needs key:create, and creating a new locale needs language:manage.
An lk_ token is scoped to one project, so the tools act on it automatically. An OAuth connection (below) belongs to you and reaches all your projects, so its tools take a project slug: call list_projects first, then pass project to the others. Permissions are checked again per project on every call, so the agent can never do more on a project than you can.
Connect by signing in (OAuth)#
If your MCP client supports OAuth (Claude’s connectors, many IDE agents), you can connect by signing in instead of pasting a token. Point the client at the same URL without an Authorization header:
{
"mcpServers": {
"lantern": { "url": "https://lantern.abyss-inn.ch/api/v1/mcp" }
}
}The client finds Lantern’s authorization server, opens a browser for you to sign in, and shows a consent screen confirming that the agent will act as you, across all your projects. You can only grant permissions you hold yourself, and each one is checked again per project when the agent calls a tool.
Lantern implements standard OAuth 2.1 — PKCE, dynamic client registration, rotating refresh tokens — so any MCP client that follows the spec works. Access is tied to your account and checked on every call, so a permission you lose in a project stops working for the agent straight away.