@@ -72,61 +72,70 @@ Before connecting to Claude, verify your MCP server is working. In a new termina
72
72
npx @modelcontextprotocol/inspector http://127.0.0.1:5050/mcp --transport http
73
73
```
74
74
75
- 1 . This will automatically open your browser to ` http://127.0.0.1:6274 ` .
76
- 1 . In MCP Inspector, select ` Streamable HTTP ` as the Transport Type and enter ` http://127.0.0.1:5050/mcp ` as the URL.
77
- 2 . Click ** Connect** , then ** List Tools** .
75
+ This will automatically open your browser to ` http://127.0.0.1:6274 ` .
78
76
79
- You should see MCP tools listed .
77
+ Click ** Connect ** , then ** List Tools ** to see the available tools .
80
78
81
79
## Step 3: Connect to Claude Desktop
82
80
83
- Apollo MCP Server works with ** any** MCP-compatible client. Add the generated initial ` config.json ` to the AI application of your choosing.
81
+ Apollo MCP Server works with any MCP-compatible client. Choose your favorite client and follow the instructions to connect.
84
82
85
- The template comes with config for Claude Desktop.
83
+ < ExpansionPanel title = " Claude Desktop" >
86
84
87
- ``` bash
88
- # Copy the configuration for Claude Desktop
89
- # macOS:
90
- cp claude_desktop_config.json ~ /Library/Application\ Support/Claude/claude_desktop_config.json
85
+ Open the ` claude_desktop_config.json ` file in one of the following paths:
91
86
92
- # Windows:
93
- copy claude_desktop_config.json " %APPDATA%\Claude\claude_desktop_config.json"
87
+ - Mac OS: ` ~/Library/Application\ Support/Claude/claude_desktop_config.json `
88
+ - Windows: ` %APPDATA%\Claude\claude_desktop_config.json `
89
+ - Linux: ` ~/.config/Claude/claude_desktop_config.json `
94
90
95
- # Linux:
96
- cp claude_desktop_config.json ~ /.config/Claude/claude_desktop_config.json
91
+ Copy the configuration:
97
92
98
- # Restart Claude Desktop
93
+ ``` json
94
+ {
95
+ "mcpServers" : {
96
+ "mcp-My API" : {
97
+ "command" : " npx" ,
98
+ "args" : [
99
+ " mcp-remote" ,
100
+ " http://127.0.0.1:5050/mcp"
101
+ ]
102
+ }
103
+ }
104
+ }
99
105
```
100
106
101
- <details >
102
- <summary >Claude Code</summary >
107
+ </ExpansionPanel >
103
108
109
+ <ExpansionPanel title = " Claude Code" >
104
110
Install using the CLI:
105
111
106
112
``` bash
107
- claude mcp add apollo-mcp npx mcp-remote http://127.0.0.1:5000 /mcp
113
+ claude mcp add apollo-mcp npx mcp-remote http://127.0.0.1:5050 /mcp
108
114
```
109
- </details >
110
- <details >
111
- <summary >Cursor</summary >
115
+ </ExpansionPanel >
112
116
117
+ <ExpansionPanel title = " Cursor" >
113
118
Click the button to quick install:
114
119
115
- [ ![ Install Apollo MCP Server] ( https://cursor.com/deeplink/mcp-install-dark.svg )] ( cursor://anysphere.cursor-deeplink/mcp/install?name=apollo-mcp&config=eyJjb21tYW5kIjoibnB4IG1jcC1yZW1vdGUgaHR0cDovLzEyNy4wLjAuMTo1MDUwL21jcCJ9 )
120
+ <a href = " cursor://anysphere.cursor-deeplink/mcp/install?name=apollo-mcp&config=eyJjb21tYW5kIjoibnB4IG1jcC1yZW1vdGUgaHR0cDovLzEyNy4wLjAuMTo1MDUwL21jcCJ9" >
121
+ <img
122
+ src = " https://cursor.com/deeplink/mcp-install-dark.svg"
123
+ alt = " Install Apollo MCP Server"
124
+ width = " 200"
125
+ />
126
+ </a >
116
127
117
128
Or install manually:
118
129
119
130
1 . Go to ** Cursor Settings** → ** MCP** → ** Add new MCP Server**
120
131
2 . Name: ` Apollo MCP ` (choose a title)
121
132
3 . Command: ` npx `
122
- 4 . Arguments: ` ["mcp-remote", "http://127.0.0.1:5000 /mcp"] `
123
- </details >
133
+ 4 . Arguments: ` ["mcp-remote", "http://127.0.0.1:5050 /mcp"] `
134
+ </ExpansionPanel >
124
135
125
- <details >
126
- <summary >Goose</summary >
136
+ <ExpansionPanel title = " Goose" >
127
137
Add Apollo MCP Server to your Goose configuration. Edit your ` ~/.config/goose/profiles.yaml ` :
128
138
129
-
130
139
``` yaml
131
140
default :
132
141
provider : openai
@@ -141,26 +150,24 @@ default:
141
150
command : npx
142
151
args :
143
152
- mcp-remote
144
- - http://127.0.0.1:5000 /mcp
153
+ - http://127.0.0.1:5050 /mcp
145
154
` ` `
146
155
147
156
Or use the Goose CLI to add the MCP server:
148
157
149
158
` ` ` bash
150
- goose mcp add apollo-mcp npx mcp-remote http://127.0.0.1:5000 /mcp
159
+ goose mcp add apollo-mcp npx mcp-remote http://127.0.0.1:5050 /mcp
151
160
```
152
- </details >
153
- <details >
154
- <summary >Cline (VS Code Extension)</summary >
161
+ </ExpansionPanel >
155
162
163
+ <ExpansionPanel title = " Cline (VS Code Extension)" >
156
164
1 . Go to ** Advanced settings** → ** Extensions** → ** Add custom extension**
157
165
2 . Name: ` Apollo MCP `
158
166
3 . Type: ** STDIO**
159
- 4 . Command: ` npx mcp-remote http://127.0.0.1:5000/mcp `
160
- </details >
161
- <details >
162
- <summary >OpenCode</summary >
167
+ 4 . Command: ` npx mcp-remote http://127.0.0.1:5050/mcp `
168
+ </ExpansionPanel >
163
169
170
+ <ExpansionPanel title = " OpenCode" >
164
171
Edit ` ~/.config/opencode/opencode.json ` :
165
172
166
173
``` json
@@ -172,21 +179,20 @@ Edit `~/.config/opencode/opencode.json`:
172
179
"command" : [
173
180
" npx" ,
174
181
" mcp-remote" ,
175
- " http://127.0.0.1:5000 /mcp"
182
+ " http://127.0.0.1:5050 /mcp"
176
183
],
177
184
"enabled" : true
178
185
}
179
186
}
180
187
}
181
188
```
182
- </details >
183
- <details >
184
- <summary >Windsurf</summary >
189
+ </ExpansionPanel >
185
190
186
- Go to ** Windsurf Settings → MCP → Add new MCP Server**
187
- Name: ` Apollo MCP `
188
- Command: ` npx `
189
- Arguments: ` ["mcp-remote", "http://127.0.0.1:5000/mcp"] `
191
+ <ExpansionPanel title = " Windsurf" >
192
+ 1 . Go to ** Windsurf Settings → MCP → Add new MCP Server**
193
+ 2 . Name: ` Apollo MCP `
194
+ 3 . Command: ` npx `
195
+ 4 . Arguments: ` ["mcp-remote", "http://127.0.0.1:5050/mcp"] `
190
196
191
197
Alternatively, edit your Windsurf configuration file directly:
192
198
@@ -197,14 +203,18 @@ Alternatively, edit your Windsurf configuration file directly:
197
203
"command" : " npx" ,
198
204
"args" : [
199
205
" mcp-remote" ,
200
- " http://127.0.0.1:5000 /mcp"
206
+ " http://127.0.0.1:5050 /mcp"
201
207
]
202
208
}
203
209
}
204
210
}
205
211
```
206
- </details >
212
+ </ExpansionPanel >
207
213
214
+ 1 . Restart your MCP client
215
+ 1 . Test the connection by asking: "What MCP tools do you have available?"
216
+ 1 . Verify GraphQL operations are listed as available tools
217
+ 1 . Test a query using one of your configured operations
208
218
209
219
210
220
## Configuration Options
@@ -227,7 +237,7 @@ schema:
227
237
path : ./schema.graphql
228
238
transport :
229
239
type : http
230
- port : 5000
240
+ port : 5050
231
241
` ` `
232
242
</details>
233
243
<details>
@@ -244,7 +254,7 @@ schema:
244
254
path : ./schema.graphql
245
255
transport :
246
256
type : http
247
- port : 5000
257
+ port : 5050
248
258
host : localhost
249
259
headers :
250
260
Authorization : Bearer ${GRAPHQL_TOKEN}
@@ -275,15 +285,6 @@ export GRAPHQL_TOKEN="your-token-here"
275
285
```
276
286
</details >
277
287
278
- ## Verification
279
-
280
- After adding Apollo MCP Server to your client:
281
-
282
- 1 . ** Restart your MCP client** (Claude Desktop, Cursor, etc.)
283
- 2 . ** Test the connection** by asking: "What MCP tools do you have available?"
284
- 3 . ** Verify GraphQL operations** are listed as available tools
285
- 4 . ** Test a query** using one of your configured operations
286
-
287
288
## Troubleshooting
288
289
289
290
<details >
@@ -295,8 +296,8 @@ After adding Apollo MCP Server to your client:
295
296
- Check port numbers match between server and client config
296
297
297
298
** Connection refused errors:**
298
- - Confirm the server is running on the correct port (default: 5000 )
299
- - Verify firewall settings allow connections to localhost:5000
299
+ - Confirm the server is running on the correct port (default: 5050 )
300
+ - Verify firewall settings allow connections to localhost:5050
300
301
- For remote connections, ensure the host is set to ` 0.0.0.0 ` in your config
301
302
302
303
** GraphQL operation errors:**
@@ -381,7 +382,7 @@ docker build -f mcp.Dockerfile -t my-mcp-server .
381
382
382
383
** Run locally:**
383
384
``` bash
384
- docker run -p 4000:4000 -p 5050:5000 \
385
+ docker run -p 4000:4000 -p 5050:5050 \
385
386
-e APOLLO_KEY=$APOLLO_KEY \
386
387
-e APOLLO_GRAPH_REF=$APOLLO_GRAPH_REF \
387
388
-e MCP_ENABLE=1 \
@@ -425,7 +426,7 @@ Ensure these variables are set in your deployment environment:
425
426
| ----------| -------------| ----------|
426
427
| ` APOLLO_KEY ` | Your graph's API key | Yes |
427
428
| ` APOLLO_GRAPH_REF ` | Your graph reference | Yes |
428
- | ` APOLLO_MCP_TRANSPORT__PORT ` | MCP server port (default: 5000 ) | No |
429
+ | ` APOLLO_MCP_TRANSPORT__PORT ` | MCP server port (default: 5050 ) | No |
429
430
| ` APOLLO_ROUTER_PORT ` | Router port (default: 4000) | No |
430
431
431
432
For more deployment options, see the [ Deploy the MCP Server] ( .deploy ) page.
0 commit comments