Getting Started with MCP
Connect your AI assistant to Meldoc in a few minutes — the connect wizard does the setup for you.
Fastest path: the connect wizard
The wizard picks the setup for your client and issues the token. Nothing to copy by hand but one command — or one click.
- Open Settings → Integration Tokens.
- Select Connect an app.
- Choose Connect an AI assistant.
- Pick your client — Claude, Claude Code, Cursor, VS Code, Windsurf, Codex, or Other for any MCP client.
- Follow the steps shown for your client. You get either a one-click install button or a copy-ready command, with your workspace and a fresh token already filled in.
The wizard detects the first successful request on its own and switches to Connected, so you’ll know it worked without leaving the page.
Keep in mind: The token is shown once. Meldoc stores only a hash of it, so if you lose the value, issue a new token — there is no way to reveal an old one.
Until a client connects, the workspace Overview carries a card tracking the setup. It names the token you’re waiting on, and disappears the moment Meldoc sees a request.
Everything below is the manual equivalent — use it when you’re scripting a setup or you prefer editing config by hand.
Manual setup: Cursor / Claude Code / VS Code / Windsurf
These clients support Streamable HTTP natively. Add this to your MCP config file:
{
"mcpServers": {
"meldoc": {
"type": "http",
"url": "https://api.meldoc.io/mcp?workspace=your-workspace",
"headers": {
"Authorization": "Bearer mdc_your_token_here"
}
}
}
}
The ?workspace= parameter pins the connection to one workspace — recommended if your account belongs to more than one. See Workspace Management for the other ways to choose a workspace.
Config file locations:
| Client | Config path |
|---|---|
| Cursor (project) | .cursor/mcp.json |
| Cursor (global) | ~/.cursor/mcp.json |
| Claude Code (project) | .mcp.json |
| Claude Code (global) | ~/.claude.json |
| VS Code | .vscode/mcp.json |
| Windsurf | .windsurf/mcp.json |
Restart your client after saving.
Claude Desktop & Claude.ai
Both connect through a custom connector pointed at https://api.meldoc.io/mcp. Use OAuth if you can. Everyone signs in with their own Meldoc account, so there’s no token to pass around and each connector carries that person’s permissions.
Recommended: OAuth (browser login)
- In Claude, open Settings → Connectors → Add custom connector.
- (Claude Desktop only) In Name, enter anything you like (e.g. “Meldoc”).
- In URL, enter
https://api.meldoc.io/mcp. - Select Add.
- On the Authorize Access page that opens, review the access scope and select Allow.
You’re ready to go once the consent page closes — no tokens or config files needed, and access renews silently afterward.
The connect wizard’s Claude option skips these five steps. It builds an install link that opens the Add custom connector dialog with the name and URL already filled in.
Optional: scoped access with a token (Client ID + Secret)
Use this to give people scoped access without a full Meldoc account — read-only access to a few documents for a wider team, say. Create an integration token with the right scope and share it as a connector. Everyone using it gets exactly the token’s access.
- Create a token at Settings → Integration Tokens → Create token. Copy the
mdc_…secret — it’s shown only once. Each token also has an auto-generated Client ID (copyable on the token row). - In Claude, open Settings → Connectors → Add custom connector.
- Server URL:
https://api.meldoc.io/mcp. - Under Advanced / OAuth settings, enter the Client ID and the
mdc_…token as the Client Secret. - Select Connect. No per-user login — everyone using the connector gets the token’s exact scope and permissions.
Note: Claude.ai won’t add two connectors with the same URL. To connect a second Meldoc workspace, point it at
https://api.meldoc.io/mcp0(and a third at/mcp1) — they are identical servers. Three is all there is:/mcp,/mcp0and/mcp1. A fourth workspace has no slot to take, so use one connector and pass the workspace per call instead — see Workspace Management.
Alternative: mcp-remote bridge
If custom connectors aren’t available, use mcp-remote as a bridge (requires Node.js 18+):
{
"mcpServers": {
"meldoc": {
"command": "npx",
"args": ["mcp-remote", "https://api.meldoc.io/mcp"]
}
}
}
Config file locations:
- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json - Windows:
%APPDATA%\Claude\claude_desktop_config.json - Linux:
~/.config/claude/claude_desktop_config.json
mcp-remote handles authentication automatically — on first connect it opens a browser window for login. No token needed.
To use a static token instead:
{
"mcpServers": {
"meldoc": {
"command": "npx",
"args": ["mcp-remote", "https://api.meldoc.io/mcp", "--header", "Authorization:Bearer mdc_your_token_here"]
}
}
}
Restart Claude Desktop after editing.
Verify the connection
If you used the wizard, it flips to Connected on the first successful request. To check by hand, ask your assistant something that has to hit Meldoc:
“Search my Meldoc docs for the deployment runbook.”
If it responds with your workspace data, you’re good to go.
Legacy: npm proxy
For clients that don’t support Streamable HTTP or mcp-remote, the @meldocio/mcp-stdio-proxy npm package is available as a fallback (requires Node.js 18+):
npx @meldocio/mcp-stdio-proxy@latest install
npx @meldocio/mcp-stdio-proxy@latest auth login
See the package README for full usage.
What’s next?
Authentication — Token management and login methods.
MCP Tools Reference — See all available MCP tools.
Workspace Management — Switch between workspaces.