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

# SoMark MCP

> Parse documents with SoMark inside Claude Desktop, VS Code, Cursor, and any MCP-compatible client

[SoMark MCP Server](https://github.com/SoMarkAI/somark_mcp) is the right fit for Claude Desktop, VS Code, Cursor, and other MCP-capable clients that should call SoMark directly through the assistant. If you are still comparing integration paths, start with the [get started overview](https://docs.somark.ai/en/documentation/get-started-overview.md); if your environment is Skill-based instead, switch to [SoMark Skill](https://docs.somark.ai/en/documentation/skill.md).

**1. Get your API key**

Visit [somark.ai/Studio/apikey](https://somark.ai/Studio/apikey) to get your API key.

**2. Configure your MCP client**

Add the following to your MCP client's configuration file:

```json theme={null}
{
  "mcpServers": {
    "somark": {
      "command": "npx",
      "args": ["-y", "somark-mcp"],
      "env": {
        "SOMARK_API_KEY": "your-api-key-here"
      }
    }
  }
}
```

> [accordion] Claude Desktop
>
> Config file location:
>
> * macOS: `~/Library/Application Support/Claude/claude_desktop_config.json`
> * Windows: `%APPDATA%\Claude\claude_desktop_config.json`

> [accordion] VS Code
>
> Find the MCP configuration in VS Code settings, or edit `.vscode/mcp.json`.

> [accordion] Cursor
>
> Search for MCP in Cursor settings and add the configuration to the corresponding JSON file.

**3. Start parsing**

Once configured, ask your AI assistant directly:

> "Parse this PDF for me"
> "Extract the key clauses from this contract"
> "Convert this image to Markdown"

**4. Check these items first when something fails**

| Problem | Solution |
| - | - |
| "API key not configured" | Check `env.SOMARK_API_KEY` in your MCP config |
| Connection issues | Verify the API key and confirm [somark.ai](https://somark.ai) is reachable |
| File too large | The current synchronous uploader supports a single file up to 200 MB |
| Unsupported format | Supports PDF, image, Word, PPT, and Excel files. Confirm the file suffix is in the supported list |


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.