You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/content/docs/agents/model-context-protocol/getting-started.mdx
+4-42Lines changed: 4 additions & 42 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -102,41 +102,9 @@ After deploying, take the URL of your deployed MCP server, and enter it in the M
102
102
103
103
### Connect your remote MCP server to Claude and other MCP Clients via a local proxy
104
104
105
-
Now that your MCP server is running with OAuth authentication, you can use the [`mcp-remote` local proxy](https://www.npmjs.com/package/mcp-remote) to connect Claude Desktop or other MCP clients to it — even though if these tools aren't yet _remote_ MCP clients, and don't support remote transport or authorization on the client side. This lets you to test what an interaction with your OAuth-enabled MCP server will be like with a real MCP client.
105
+
Now that your MCP server is running with OAuth authentication, you can use the [`mcp-remote` local proxy](https://www.npmjs.com/package/mcp-remote) to connect Claude Desktop or other MCP clients to it — even though these tools aren't yet _remote_ MCP clients, and don't support remote transport or authorization on the client side. This lets you to test what an interaction with your OAuth-enabled MCP server will be like with a real MCP client.
106
106
107
-
#### Connect to your MCP server running locally
108
-
109
-
Follow these steps to connect Claude Desktop to the MCP server running on your local machine:
110
-
111
-
1. Open Claude Desktop and navigate to Settings -> Developer -> Edit Config. This opens the configuration file that controls which MCP servers Claude can access.
112
-
2. Add the MCP server to your config:
113
-
114
-
```json
115
-
{
116
-
"mcpServers": {
117
-
"math": {
118
-
"command": "npx",
119
-
"args": [
120
-
"mcp-remote",
121
-
"http://localhost:8787/sse"
122
-
]
123
-
}
124
-
}
125
-
}
126
-
```
127
-
This tells Claude to communicate with your MCP server running at `http://localhost:8787/sse`.
128
-
129
-
3. Save the file and restart Claude Desktop (command/ctrl + R). When Claude restarts, a browser window will open showing your OAuth login page. Complete the authentication flow to grant Claude access to your MCP server.
130
-
131
-
Once authenticated, you'll be able to see your tools by clicking the tools icon in the bottom right corner of Claude's interface.
132
-
133
-
#### Test the integration
134
-
135
-
Ask Claude to use one of your tools. For example: "Could you use the math tool to add 23 and 19?". Claude should invoke the tool and show the result generated by the MCP server.
136
-
137
-
#### Connect to your deployed MCP server
138
-
139
-
After you've deployed your MCP server to Cloudflare, update your Claude Desktop configuration to point to the deployed URL:
107
+
Update your Claude Desktop configuration to point to the URL of your MCP server. You can use either the `localhost:8787/sse` URL, or the URL of your deployed MCP server:
140
108
141
109
```json
142
110
{
@@ -151,15 +119,9 @@ After you've deployed your MCP server to Cloudflare, update your Claude Desktop
151
119
}
152
120
}
153
121
```
154
-
Restart Claude Desktop and complete the authentication flow again. Once this is done, Claude will be able to make calls to your remote MCP server.
155
-
156
-
#### Connecting with other MCP Clients
157
-
158
-
To connect Cursor with your MCP server, choose `Type`: "Command" and in the `Command` field, combine the command and args fields into one (e.g.`npx mcp-remote https://your-worker-name.your-account.workers.dev/sse`).
159
-
160
-
You can connect your MCP server to other MCP clients like Windsurf by opening the client's configuration file, adding the same JSON that was used for the Claude setup, and restarting the MCP client.
161
-
122
+
Restart Claude Desktop and complete the authentication flow again. Once this is done, Claude will be able to make calls to your remote MCP server. you can test this by asking Claude to use one of your tools. For example: "Could you use the math tool to add 23 and 19?". Claude should invoke the tool and show the result generated by the MCP server.
162
123
124
+
Learn more about other ways of using remote MCP servers with MCP clients here in [this section](/agents/model-context-protocol/test-remote-mcp-server.mdx).
0 commit comments