Skip to content

Connections API

Base URL: http://localhost:8000/api/connections

GET /api/connections
Terminal window
curl http://localhost:8000/api/connections

Response 200 OK

[
{
"name": "notion",
"command": "npx",
"args": ["-y", "mcp-notion-server"],
"env": {"NOTION_TOKEN": "secret_xxx"}
}
]

POST /api/connections
Content-Type: application/json
Terminal window
curl -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

CodeReason
409A connection with that name already exists

GET /api/connections/{name}
Terminal window
curl http://localhost:8000/api/connections/notion

Response 200 OK

{
"name": "notion",
"command": "npx",
"args": ["-y", "mcp-notion-server"],
"env": {"NOTION_TOKEN": "secret_xxx"}
}

Errors

CodeReason
404Connection not found

PUT /api/connections/{name}
Content-Type: application/json
Terminal window
curl -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

CodeReason
404Connection not found

DELETE /api/connections/{name}
Terminal window
curl -X DELETE http://localhost:8000/api/connections/notion

Response 204 No Content

Errors

CodeReason
404Connection not found