Connections API
Base URL: http://localhost:8000/api/connections
List connections
Section titled “List connections”GET /api/connectionscurl http://localhost:8000/api/connectionsResponse 200 OK
[ { "name": "notion", "command": "npx", "args": ["-y", "mcp-notion-server"], "env": {"NOTION_TOKEN": "secret_xxx"} }]Create connection
Section titled “Create connection”POST /api/connectionsContent-Type: application/jsoncurl -X POST http://localhost:8000/api/connections \ -H "Content-Type: application/json" \ -d '{"name": "notion", "command": "npx", "args": ["-y", "mcp-notion-server"], "env": {"NOTION_TOKEN": "secret_xxx"}}'Body
{ "name": "notion", "command": "npx", "args": ["-y", "mcp-notion-server"], "env": {"NOTION_TOKEN": "secret_xxx"}}Response 201 Created — returns the created connection object.
Errors
| Code | Reason |
|---|---|
409 | A connection with that name already exists |
Get connection
Section titled “Get connection”GET /api/connections/{name}curl http://localhost:8000/api/connections/notionResponse 200 OK
{ "name": "notion", "command": "npx", "args": ["-y", "mcp-notion-server"], "env": {"NOTION_TOKEN": "secret_xxx"}}Errors
| Code | Reason |
|---|---|
404 | Connection not found |
Update connection
Section titled “Update connection”PUT /api/connections/{name}Content-Type: application/jsoncurl -X PUT http://localhost:8000/api/connections/notion \ -H "Content-Type: application/json" \ -d '{"name": "notion", "command": "npx", "args": ["-y", "mcp-notion-server"], "env": {"NOTION_TOKEN": "secret_new"}}'Body — same schema as POST.
Response 200 OK — returns the updated connection object.
Errors
| Code | Reason |
|---|---|
404 | Connection not found |
Delete connection
Section titled “Delete connection”DELETE /api/connections/{name}curl -X DELETE http://localhost:8000/api/connections/notionResponse 204 No Content
Errors
| Code | Reason |
|---|---|
404 | Connection not found |