Site MCP servers
Configure external MCP servers used by your site.
Manage Model Context Protocol (Mcp) servers used by your site.
Attributes
objectstring · enumRequiredPossible values:
idstringRequired
Unique identifier for the MCP server
namestring · min: 1 · max: 100Required
Name of the MCP server
urlstring · uri · max: 2048Required
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"
}
}
Authorizations
Path parameters
organizationIdstringRequired
The unique id of the organization
siteIdstringRequired
The unique id of the site
Query parameters
pagestringOptional
Identifier of the page results to fetch.
limitnumber · max: 1000Optional
The number of results per page
Responses
200
OK
application/json
Responseall of
get
GET /v1/orgs/{organizationId}/sites/{siteId}/mcp-servers HTTP/1.1
Host: api.gitbook.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
200
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"
}
}
]
}
Authorizations
Path parameters
organizationIdstringRequired
The unique id of the organization
siteIdstringRequired
The unique id of the site
Body
namestring · min: 1 · max: 100Required
Name of the MCP server
urlstring · uri · max: 2048Required
Responses
201
MCP server created
application/json
post
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"
}
}
201
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"
}
}
Authorizations
Path parameters
organizationIdstringRequired
The unique id of the organization
siteIdstringRequired
The unique id of the site
siteMcpServerIdstringRequired
The unique id of the MCP server
Responses
200
OK
application/json
get
GET /v1/orgs/{organizationId}/sites/{siteId}/mcp-servers/{siteMcpServerId} HTTP/1.1
Host: api.gitbook.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
200
OK
{
"object": "site-mcp-server",
"id": "text",
"name": "text",
"url": "https://example.com",
"headers": {
"ANY_ADDITIONAL_PROPERTY": "text"
},
"urls": {
"location": "https://example.com"
}
}
Authorizations
Path parameters
organizationIdstringRequired
The unique id of the organization
siteIdstringRequired
The unique id of the site
siteMcpServerIdstringRequired
The unique id of the MCP server
Responses
205
MCP server deleted
delete
DELETE /v1/orgs/{organizationId}/sites/{siteId}/mcp-servers/{siteMcpServerId} HTTP/1.1
Host: api.gitbook.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
205
MCP server deleted
No content
Authorizations
Path parameters
organizationIdstringRequired
The unique id of the organization
siteIdstringRequired
The unique id of the site
siteMcpServerIdstringRequired
The unique id of the MCP server
Body
namestring · min: 1 · max: 100Optional
Name of the MCP server
urlstring · uri · max: 2048Optional
Responses
200
OK
application/json
patch
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"
}
}
200
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?