Get an MCP server configuration for a site by its ID
get
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
organizationIdstringRequiredPattern:
A unique entity identifier
^[a-zA-Z0-9_-]+$siteIdstringRequired
The unique id of the site
siteMcpServerIdstringRequired
The unique id of the MCP server
Responses
200
OK
application/json
objectstring · enumRequiredPossible values:
idstringRequired
Unique identifier for the MCP server
namestring · min: 1 · max: 100Required
Name of the MCP server
urlstring · uri · max: 2048Required
transportstring · enumRequiredDefault:
Transport protocol used to connect to the MCP server
ssePossible values: conditionstring · max: 1024Optional
Conditional expression used to evaluate whether the MCP server should be available to the site's visitor.
get/orgs/{organizationId}/sites/{siteId}/mcp-servers/{siteMcpServerId}
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",
"transport": "sse",
"headers": {
"ANY_ADDITIONAL_PROPERTY": "text"
},
"condition": "text",
"urls": {
"location": "https://example.com"
}
}Last updated
Was this helpful?