Site MCP servers
Configure external MCP servers used by your site.
Manage Model Context Protocol (Mcp) servers used by your site.
Unique identifier for the MCP server
Name of the MCP server
The SiteMcpServer object
{
"object": "site-mcp-server",
"id": "text",
"name": "text",
"url": "https://example.com",
"headers": {
"ANY_ADDITIONAL_PROPERTY": "text"
},
"urls": {
"location": "https://example.com"
}
}The unique id of the organization
The unique id of the site
Identifier of the page results to fetch.
The number of results per page
OK
GET /v1/orgs/YOUR_ORGANIZATION_ID/sites/YOUR_SITE_ID/mcp-servers HTTP/1.1
Host: api.gitbook.com
Authorization: Bearer YOUR_API_TOKEN
Accept: */*
OK
{
"next": {
"page": "text"
},
"count": 1,
"items": [
{
"object": "site-mcp-server",
"id": "text",
"name": "text",
"url": "https://example.com",
"headers": {
"ANY_ADDITIONAL_PROPERTY": "text"
},
"urls": {
"location": "https://example.com"
}
}
]
}The unique id of the organization
The unique id of the site
Name of the MCP server
MCP server created
POST /v1/orgs/YOUR_ORGANIZATION_ID/sites/YOUR_SITE_ID/mcp-servers HTTP/1.1
Host: api.gitbook.com
Authorization: Bearer YOUR_API_TOKEN
Content-Type: application/json
Content-Length: 88
Accept: */*
{
"name": "text",
"url": "https://example.com",
"headers": {
"ANY_ADDITIONAL_PROPERTY": "text"
}
}MCP server created
{
"object": "site-mcp-server",
"id": "text",
"name": "text",
"url": "https://example.com",
"headers": {
"ANY_ADDITIONAL_PROPERTY": "text"
},
"urls": {
"location": "https://example.com"
}
}The unique id of the organization
The unique id of the site
The unique id of the MCP server
OK
GET /v1/orgs/YOUR_ORGANIZATION_ID/sites/YOUR_SITE_ID/mcp-servers/YOUR_SITE_MCP_SERVER_ID HTTP/1.1
Host: api.gitbook.com
Authorization: Bearer YOUR_API_TOKEN
Accept: */*
OK
{
"object": "site-mcp-server",
"id": "text",
"name": "text",
"url": "https://example.com",
"headers": {
"ANY_ADDITIONAL_PROPERTY": "text"
},
"urls": {
"location": "https://example.com"
}
}The unique id of the organization
The unique id of the site
The unique id of the MCP server
MCP server did not exist
No content
MCP server deleted
DELETE /v1/orgs/YOUR_ORGANIZATION_ID/sites/YOUR_SITE_ID/mcp-servers/YOUR_SITE_MCP_SERVER_ID HTTP/1.1
Host: api.gitbook.com
Authorization: Bearer YOUR_API_TOKEN
Accept: */*
No content
The unique id of the organization
The unique id of the site
The unique id of the MCP server
Name of the MCP server
OK
PATCH /v1/orgs/YOUR_ORGANIZATION_ID/sites/YOUR_SITE_ID/mcp-servers/YOUR_SITE_MCP_SERVER_ID HTTP/1.1
Host: api.gitbook.com
Authorization: Bearer YOUR_API_TOKEN
Content-Type: application/json
Content-Length: 88
Accept: */*
{
"name": "text",
"url": "https://example.com",
"headers": {
"ANY_ADDITIONAL_PROPERTY": "text"
}
}OK
{
"object": "site-mcp-server",
"id": "text",
"name": "text",
"url": "https://example.com",
"headers": {
"ANY_ADDITIONAL_PROPERTY": "text"
},
"urls": {
"location": "https://example.com"
}
}Last updated
Was this helpful?