# MarkItDown MCP setup for Claude Code, Codex, Gemini CLI and other clients

> One table of MarkItDown MCP configs for Claude Code, Codex CLI, Gemini CLI, Cursor, Windsurf and others, each marked tested or not, with the version and date.

Source: https://markitdown.dev/mcp/clients/ · Updated 2026-11-15·Upstream source ↗

Every client launches the same local server ([MCP page](https://markitdown.dev/mcp/)); only the file, the format and a few key names differ. We could run three command-line clients; the rest of the table is from their documentation and is marked not tested by us.

> **Short answer**
>
> Find your client in the table; the result column says what we actually saw. The launcher all of them share:
> 
> ```bash
> uvx --prerelease=allow markitdown-mcp==0.0.1a8
> ```
> 
> Claude Desktop has [its own page](https://markitdown.dev/mcp/claude-desktop/).

Tested with markitdown 0.1.9 · Python markitdown-mcp 0.0.1a8 · Claude Code 2.1.325, Codex CLI 0.169.0 and Gemini CLI 0.68.0 on Linux; Cursor, Windsurf, VS Code and Claude Desktop were not run (T13) · 2026-11-15 · evidence: [mcp-clients.csv](https://markitdown.dev/data/mcp-clients.csv), [mcp-clients.json](https://markitdown.dev/data/mcp-clients.json), [cc-probe.log](https://markitdown.dev/evidence/T13/cc-probe.log), [codex-probe.log](https://markitdown.dev/evidence/T13/codex-probe.log)

## Compatibility table

Clients, what we saw and where the config lives (macOS and Linux paths; Windows paths are in the generator)
| Client | Version tested | Result | Format | Config file | Date |
| --- | --- | --- | --- | --- | --- |
| Claude Code | 2.1.325 | Connected (tested) | Command (writes a JSON file) | ~/.claude.json (user) · .mcp.json (project) | 2026-11-15 |
| Codex CLI | 0.169.0 | Config format checked, connection not shown | Command or TOML | ~/.codex/config.toml | 2026-11-15 |
| Gemini CLI | 0.68.0 | Config format checked, connection not shown | Command or JSON | ~/.gemini/settings.json (user) · .gemini/settings.json (project) | 2026-11-15 |
| Claude Desktop |  | Not tested by us | JSON ("mcpServers" key) | ~/Library/Application Support/Claude/claude\_desktop\_config.json |  |
| VS Code (GitHub Copilot) |  | Not tested by us | JSON ("servers" key) | .vscode/mcp.json in the workspace, or the user-level file opened by "MCP: Open User Configuration" |  |
| Cursor |  | Not tested by us | JSON ("mcpServers" key) | ~/.cursor/mcp.json (user) · .cursor/mcp.json (project) |  |
| Windsurf |  | Not tested by us | JSON ("mcpServers" key) | ~/.codeium/windsurf/mcp\_config.json |  |
| Another client (generic JSON) |  | Not tested by us | JSON ("mcpServers" key) | see your client's documentation |  |

*Clients, what we saw and where the config lives (macOS and Linux paths; Windows paths are in the generator) Source: Test T13 · 2026-11-15 · mcp-clients.csv · Download CSV*

## Generate your config

MCP Config Generator

The interactive generator needs JavaScript. This is the default: Claude Code, the uvx launcher (tested), and the generic JSON shape (not tested by us).

```
claude mcp add markitdown -- uvx --prerelease=allow markitdown-mcp==0.0.1a8
```

```
{
  "mcpServers": {
    "markitdown": {
      "command": "uvx",
      "args": [
        "--prerelease=allow",
        "markitdown-mcp==0.0.1a8"
      ]
    }
  }
}
```

Client

Operating system

Launcher

Transport

Scope

Options

Full path to the command (optional) Example file for the test prompt (optional)

markitdown-mcp 0.0.1a8 · entries checked 2026-11-15 · runs in your browser, the paths you type are never sent anywhere

## Notes per client

### Claude Code

`claude mcp add` wrote the entry and `claude mcp list` reported the server **Connected** for the installed command, for `uvx` and for HTTP on localhost. A project-scope server (`.mcp.json`) waited for approval the first time. Adding an environment variable works with `--env` placed **after** the server name; placed before it, the command failed with `missing required argument 'commandOrUrl'`.

### Codex CLI

`codex mcp add markitdown -- <command>` wrote a `[mcp_servers.markitdown]` table to `config.toml`, and `codex mcp list` showed it enabled. Setting `CODEX_HOME` to a folder that did not exist made the command fail until we created the folder. We did not make Codex call the tool.

### Gemini CLI

`gemini mcp add` wrote `mcpServers` to `settings.json`. In a folder Gemini treats as untrusted, project-scope servers are disabled and the command refused to write there until we set `GEMINI_CLI_TRUST_WORKSPACE=true`. `gemini mcp list` showed the servers as disconnected: we had no login, so we cannot say whether a signed-in session would connect.

### Cursor, Windsurf and others

Not tested by us. The generator gives the documented JSON shape, labelled as untested.

## The same three checks for any client

1.  Prove the server alone works ([health check](https://markitdown.dev/mcp/)).
2.  Give the client the full path to the launcher if it does not inherit your PATH.
3.  Use a `file://` address in your prompt: a plain path was rejected by the server.

## Related

- [MCP server](https://markitdown.dev/mcp/): The server itself and the config generator.
- [MCP in Claude Desktop](https://markitdown.dev/mcp/claude-desktop/): Claude Desktop.
- [MarkItDown with Claude](https://markitdown.dev/claude/): Which route to use with Claude.
- [Plugins](https://markitdown.dev/plugins/): Plugins through the server.

---
Independent guide to the open-source MarkItDown library. Not affiliated with or endorsed by Microsoft. Official source: https://github.com/microsoft/markitdown
