> ## Documentation Index
> Fetch the complete documentation index at: https://api-docs.ollang.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Cursor

> Use Ollang MCP inside Cursor IDE to translate content while you code.

# Ollang MCP in Cursor

[Cursor](https://cursor.com) is an AI-powered code editor built on VS Code. With Ollang MCP, you can manage translations directly from your development environment.

## Setup

<Steps>
  <Step title="Open MCP settings">
    Go to **Settings > Cursor Settings > Tools & MCP** and click **"New MCP Server"**.
  </Step>

  <Step title="Add Ollang MCP">
    Create or edit `.cursor/mcp.json` in your project root:

    ```json .cursor/mcp.json theme={null}
    {
      "mcpServers": {
        "ollang": {
          "url": "https://mcp.ollang.com/mcp"
        }
      }
    }
    ```
  </Step>

  <Step title="Authenticate">
    When Cursor connects to the server, a browser window opens for Ollang sign-in. Complete the authentication and return to Cursor.
  </Step>

  <Step title="Start using Ollang">
    Open Cursor's AI chat (Cmd+L / Ctrl+L) and start asking about translations.
  </Step>
</Steps>

## Use Cases

### Localize i18n files during development

When working on an internationalized app, you can translate JSON locale files on the fly:

```
Upload my en.json locale file to Ollang and create document translation
orders for fr.json, de.json, and ja.json. Use the source language "en".
```

### Translate code documentation

```
Take the JSDoc comments from src/api/client.ts, upload them to Ollang
for document translation to Spanish, and show me the translated text.
```

### Manage translation orders from your editor

```
Show me all my Ollang orders from the last week. Which ones are still
in progress?
```

### Create translation guidelines for your project

```
Create a custom instruction in Ollang called "Mobile App UI" with content:
"Keep strings short for mobile screens. Use informal tone. Translate
UI abbreviations contextually. Keep brand names in English."
```

## Multi-Server Configuration

Combine Ollang with other MCP servers for powerful workflows:

```json .cursor/mcp.json theme={null}
{
  "mcpServers": {
    "ollang": {
      "url": "https://mcp.ollang.com/mcp"
    },
    "notion": {
      "command": "npx",
      "args": ["-y", "@notionhq/notion-mcp-server"],
      "env": {
        "NOTION_TOKEN": "ntn_XXXX"
      }
    }
  }
}
```

<Tip>
  Cursor supports both project-scoped (`.cursor/mcp.json`) and global (`~/.cursor/mcp.json`) MCP configurations. Use project-scoped for team projects and global for personal tools.
</Tip>
