Skip to content

Commit f428057

Browse files
committed
docs: add mcp.md
1 parent 0e7d28f commit f428057

1 file changed

Lines changed: 61 additions & 0 deletions

File tree

mcp.md

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
# Model Context Protocol
2+
3+
The [Model Context Protocol](https://modelcontextprotocol.io/introduction) (MCP) is a standard for connecting Large Language Models (LLMs) to external services. This guide will walk you through how to connect AI tools to Lingo.dev using MCP.
4+
5+
Some of the AI tools that support MCP are:
6+
7+
- [Cursor](https://www.cursor.com/)
8+
- [Claude desktop](https://claude.ai/download)
9+
- [Cline for VS Code](https://github.com/cline/cline)
10+
11+
Connecting these tools to Lingo.dev will allow you to translate apps, websites, and other data using the best LLM models directly in your AI tool.
12+
13+
## Setup
14+
15+
Add this command to your AI tool:
16+
17+
```bash
18+
npx -y lingo.dev mcp <api-key>
19+
```
20+
21+
You can find your API key in [Lingo.dev app](https://lingo.dev/app/), in your project settings.
22+
23+
This will allow the tool to use `translate` tool provided by Lingo.dev. The setup depends on your AI tool and might be different for each tool. Here is setup for some of the tools we use in our team:
24+
25+
### Cursor
26+
27+
1. Open Cursor and go to Cursor Settings.
28+
2. Open MCP tab
29+
3. Click `+ Add new MCP server`
30+
4. Enter the following details:
31+
- Name: Lingo.dev
32+
- Type: command
33+
- Command: `npx -y lingo.dev mcp <api-key>` (use your project API key)
34+
5. You will see green status indicator and "translate" tool available in the list
35+
36+
### Claude desktop
37+
38+
1. Open Claude desktop and go to Settings.
39+
2. Open Developer tab
40+
3. Click `Edit Config` to see configuration file in file explorer.
41+
4. Open the file in text editor
42+
5. Add the following configuration (use your project API key):
43+
44+
```json
45+
{
46+
"mcpServers": {
47+
"supabase": {
48+
"command": "npx",
49+
"args": ["-y", "lingo.dev", "mcp", "<api-key>"]
50+
}
51+
}
52+
}
53+
```
54+
55+
6. Save the configuration file
56+
7. Restart Claude desktop.
57+
8. In the chat input, you will see a hammer icon with your MCP server details.
58+
59+
## Usage
60+
61+
You are now able to access Lingo.dev via MCP. You can ask AI tool translate any content via our service.

0 commit comments

Comments
 (0)