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
GET /v1/orgs/{organizationId}/sites/{siteId}/mcp-servers HTTP/1.1
Host: api.gitbook.com
Authorization: Bearer YOUR_SECRET_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
POST /v1/orgs/{organizationId}/sites/{siteId}/mcp-servers HTTP/1.1
Host: api.gitbook.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 88
{
"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
GET /v1/orgs/{organizationId}/sites/{siteId}/mcp-servers/{siteMcpServerId} HTTP/1.1
Host: api.gitbook.com
Authorization: Bearer YOUR_SECRET_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
DELETE /v1/orgs/{organizationId}/sites/{siteId}/mcp-servers/{siteMcpServerId} HTTP/1.1
Host: api.gitbook.com
Authorization: Bearer YOUR_SECRET_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
PATCH /v1/orgs/{organizationId}/sites/{siteId}/mcp-servers/{siteMcpServerId} HTTP/1.1
Host: api.gitbook.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 88
{
"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"
}
}
Was this helpful?