Connect your AI assistant to xlocale

Ask your assistant to find a tool from our catalog of 220, format JSON, encode text or convert measurements in your conversation.

Remote MCP endpoint

https://xlocale.com/mcp

Streamable HTTP · No xlocale API key required

Choose your agent

Choose the app you use to see its setup steps.

Claude CodeClaude in your terminal

Run this from the project where you use Claude Code.

claude mcp add --transport http xlocale https://xlocale.com/mcp

Open a Claude Code session and type /mcp to check the connection. Claude Code MCP guide

CodexCodex CLI

Register the server from your terminal.

codex mcp add xlocale --url https://xlocale.com/mcp

Start a Codex session and type /mcp to see its tools. Codex MCP guide

OpenRouterAgent SDK or OpenCode

Use the Agent SDK

In a Node.js project, set OPENROUTER_API_KEY and set OPENROUTER_MODEL to the ID of a model that supports tool calling. Install the agent and its MCP client.

npm install @openrouter/agent @modelcontextprotocol/client

Save this as xlocale-agent.mjs and run node xlocale-agent.mjs. The expected Base64 value is Y2Fmw6k=.

import { OpenRouter } from '@openrouter/agent';
import { callModel } from '@openrouter/agent/call-model';
import { createMCPTools } from '@openrouter/agent/mcp';

const client = new OpenRouter({ apiKey: process.env.OPENROUTER_API_KEY });
const mcp = await createMCPTools({ url: 'https://xlocale.com/mcp' });
try {
  const result = callModel(client, {
    model: process.env.OPENROUTER_MODEL,
    input: 'Use base64 to encode the text café.',
    tools: mcp.tools,
  });
  console.log(await result.getText());
} finally {
  await mcp.close();
}
OpenRouter SDK quick start

Use OpenRouter in OpenCode

In OpenCode, run /connect, choose OpenRouter and enter your OpenRouter API key. Use /models to select an OpenRouter model that supports tool calling.

In the project terminal, register xlocale with OpenCode v2 and check that it connects.

opencode mcp add xlocale --url https://xlocale.com/mcp
opencode mcp list

OpenCode calls xlocale and sends tool results to the model you chose. OpenRouter setup · OpenCode MCP setup

VS CodeAgent chat in your editor

Open the Command Palette, select MCP: Add Server, choose HTTP and enter the following server URL. Name it xlocale and choose a workspace or user configuration.

https://xlocale.com/mcp

Run MCP: List Servers to start the server, then open the tools picker in agent chat. VS Code MCP guide

Browser agentWebMCP in this tab

Try a tool call

Ask your agent to use xlocale for one of these tasks.

search_tools
Find xlocale tools for QR codes and give me their links.
format_json
Pretty-print {"name":"kopi","cups":2} as JSON.
base64
Encode the text “café” as Base64.
convert_units
Convert 250 milliliters to liters.

Catalog search includes tools that need a browser, such as file converters. Follow the link in a result to open its full interface.

Use WebMCP in this tab

Keep this page open in a browser with WebMCP enabled and give your browser agent access to the tab. Ask it to try one of the tool calls above. The tools run in this page while it is open.

Checking WebMCP support in this tab…

Browser support and setup

Remote calls send their arguments to xlocale for processing. Browser WebMCP calls run on your device. In either case, your agent can share arguments and results with its model provider. How xlocale handles agent requests