MCP Server + Claude: How to Connect One (Web and Desktop)

· 0x.cloud Team

MCP Server + Claude: How to Connect One (Web and Desktop)

To add an MCP server Claude can use, create a custom connector: open Connectors, choose Add custom connector, paste the server URL, and sign in or add your API key. Remote servers added this way work in Claude on the web and in Claude Desktop. A local MCP server that runs on your own computer goes into claude_desktop_config.json instead.

This guide covers both paths, plus a real example: connecting the 0x.cloud MCP server so Claude can price and create VPS servers from chat.

Remote connector or local config: which one you need

MCP (Model Context Protocol) is an open protocol that lets AI apps call tools and read data from outside services. New to it? Start with what an MCP server is.

Claude supports two ways to connect one:

Method Works in Use it when
Custom connector (remote server by URL) Claude web, Claude Desktop the service gives you an MCP URL on the internet, like 0x.cloud
claude_desktop_config.json (local server) Claude Desktop only the server runs as a command on your machine, for example via npx

One detail from Anthropic's help center matters a lot: Claude reaches remote connectors from Anthropic's cloud, not from your laptop. That holds even in Claude Desktop. The server must be reachable from the public internet over HTTPS on the standard port 443, so localhost, private-network addresses, and URLs like https://example.com:8443/mcp won't work.

How to add an MCP server to Claude as a custom connector

Steps for individual plans (Free, Pro, Max, Ultra):

  1. In Claude (web or Desktop), go to Customize > Connectors.
  2. Click + Add, then Add custom connector.
  3. Enter a name, such as 0x.cloud, and the server URL exactly as the service documents it, path included: https://0x.cloud/v1/mcp. Click Continue.
  4. Review the authentication settings Claude detected and click Continue.
  5. Under Authentication, choose Sign in now, Sign in when needed, or No sign in. For OAuth, keep the recommended Use Claude's published identity. If the service uses a fixed API key, add it under Request headers: name Authorization, value Bearer YOUR_KEY.
  6. Click Add. The connector shows up in your list.

On Team and Enterprise plans, an Owner or Primary Owner adds the connector under Organization settings > Connectors > Add > Custom > Web. Members then find it under Customize > Connectors with a Custom label and click Connect. A shared API key in an org connector gives every member that key's access, so for teams prefer sign-in (OAuth), where each person uses their own account.

Turn the connector on in a chat

A connector has to be enabled per conversation:

  1. Click + in the lower left of the message box.
  2. Choose Connectors and toggle your connector on.
  3. Ask Claude to do something with the service. It asks for permission before each tool call.

Click Allow always only for tools you trust to run unsupervised. Keep approval on for anything that changes data or spends money.

Example: an MCP server Claude can use to create a VPS

The 0x.cloud MCP server covers the whole loop: get an exact price with dry_run, create a server, list servers and balance, run commands inside a server without SSH, take a snapshot, delete a server. Claude only sees the tools the connection has permission for. Details are on the 0x.cloud MCP server page.

Option 1: sign in, no key (recommended). The 0x.cloud MCP server supports OAuth 2.1, so there is nothing to copy:

  1. Add a custom connector as above: name 0x.cloud, URL https://0x.cloud/v1/mcp, Authentication set to Sign in now.
  2. The 0x.cloud sign-in page opens. Log in and pick the permissions, a monthly spend cap (for example $20), an expiry, and the "own servers only" restriction yourself.
  3. The connection shows up in your dashboard as a regular API key, where you can change or revoke it.

Option 2: API key in a header. Create a dedicated key as described in API key permissions and add it under Request headers: Authorization: Bearer YOUR_KEY. Note that pricing with dry_run needs the create permission (servers.create); read access alone is not enough. Delete (servers.delete) is part of the default set, so remove it if Claude should never delete servers.

Enable the connector in a chat and test with a read-only request:

Prompt for an AI agent

Using the 0x.cloud connector, show my balance and list my servers. Don't create or change anything.

Once that works, try a real task. Claude gets the exact price with dry_run, shows it to you, and creates the server only after you say yes. For an LLM-powered bot, s1-2 (1 vCPU, 2 GB RAM, 30 GB NVMe) at $7.99 a month is enough; on hourly billing a test costs about $0.054725 per hour, and deleting the server returns the unused remainder to your balance.

Prompt for an AI agent

Find a 0x.cloud server for a Telegram bot that calls an LLM, under $10 a month. Show the monthly and hourly price via dry_run and wait for my confirmation before creating anything.

For the full flow from prompt to running server, read how an AI agent creates a server. Plans sized for agents and bots are on VPS for AI agents.

Connect a local MCP server to Claude Desktop

Use this path for servers that run on your computer: file access, a local database, your own scripts. Steps from the MCP documentation. Servers in this file run only in Claude Desktop on your machine, not in Claude on the web:

  1. Install Node.js LTS if the server runs through npx. Check with node --version.
  2. In Claude Desktop, open the app menu Claude > Settings (the app settings, not your account settings), go to Developer, and click Edit Config.
  3. This opens claude_desktop_config.json:
    • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
    • Windows: %APPDATA%\Claude\claude_desktop_config.json
    • Linux: ~/.config/Claude/claude_desktop_config.json
  4. Add the server under mcpServers:
{
  "mcpServers": {
    "filesystem": {
      "command": "npx",
      "args": ["-y", "@modelcontextprotocol/server-filesystem", "/Users/you/Documents"]
    }
  }
}

filesystem is the display name, command and args launch the server, and the last path limits which folder Claude can touch. On Windows, escape backslashes: "C:\\Users\\you\\Documents".

  1. Save the file, quit Claude Desktop completely, and reopen it.
  2. Click + in the message box, hover Connectors, and confirm the server is listed.

Troubleshooting MCP in Claude

Problem Fix
Connector added, but no tools in chat enable it in the chat via + > Connectors
Auth error or 401 check the header value: Bearer, a space, then the key; make sure the key wasn't revoked or expired. With OAuth, remove the connector and sign in again
Create call refused over a spend limit the connection's monthly spend cap is used up; only the owner can raise it in the 0x.cloud dashboard
Claude can't reach the server the URL must be public HTTPS on port 443; localhost, private networks, and custom ports won't work
Need a new key or URL connectors can't be edited: remove and add again
Local server missing in Claude Desktop check JSON syntax (trailing commas), use absolute paths, fully restart the app
Local server crashes read mcp*.log: macOS ~/Library/Logs/Claude, Windows %APPDATA%\Claude\logs, Linux ~/.config/Claude/logs
Windows: ENOENT with ${APPDATA} in logs add an APPDATA variable with the full path to the server's env, and install npm globally: npm install -g npm

Working in a terminal? Adding the server to Claude Code takes one command: see MCP in Claude Code.

FAQ: MCP servers in Claude

Can I add a custom MCP server on the free Claude plan? Yes. Custom connectors work on Free, Pro, Max, Ultra, Team, and Enterprise, but Free users can add only one custom connector.

What is the difference between a custom connector and claude_desktop_config.json? A custom connector adds a remote MCP server by URL and works in Claude on the web and in Claude Desktop. claude_desktop_config.json launches a local MCP server on your machine and works only in Claude Desktop.

Why doesn't Claude show my MCP tools? Usually the connector isn't enabled in the current chat. Click + in the lower left, open Connectors, and toggle it on. If that doesn't help, remove the connector and add it again.

Where is claude_desktop_config.json? macOS: ~/Library/Application Support/Claude/. Windows: %APPDATA%\Claude. Linux: ~/.config/Claude/. The easiest way to open it is Settings, Developer, Edit Config.

Can I edit a custom connector after adding it? No. To change the URL or the key, remove the connector and add it again with the new details.