Site MCP servers
Configure external MCP servers used by your site.
Was this helpful?
Configure external MCP servers used by your site.
Was this helpful?
Was this helpful?
Manage Model Context Protocol (Mcp) servers used by your site.
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
OK
The unique id of the organization
The unique id of the site
Name of the MCP server
MCP server created
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
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"
}
}
OK
{
"object": "site-mcp-server",
"id": "text",
"name": "text",
"url": "https://example.com",
"headers": {
"ANY_ADDITIONAL_PROPERTY": "text"
},
"urls": {
"location": "https://example.com"
}
}
{
"object": "site-mcp-server",
"id": "text",
"name": "text",
"url": "https://example.com",
"headers": {
"ANY_ADDITIONAL_PROPERTY": "text"
},
"urls": {
"location": "https://example.com"
}
}
GET /v1/orgs/{organizationId}/sites/{siteId}/mcp-servers HTTP/1.1
Host: api.gitbook.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"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"
}
}
]
}
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"
}
}
GET /v1/orgs/{organizationId}/sites/{siteId}/mcp-servers/{siteMcpServerId} HTTP/1.1
Host: api.gitbook.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"object": "site-mcp-server",
"id": "text",
"name": "text",
"url": "https://example.com",
"headers": {
"ANY_ADDITIONAL_PROPERTY": "text"
},
"urls": {
"location": "https://example.com"
}
}
DELETE /v1/orgs/{organizationId}/sites/{siteId}/mcp-servers/{siteMcpServerId} HTTP/1.1
Host: api.gitbook.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
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"
}
}