MCP

speccustomimplproposal

Publish MCP (Model Context Protocol)open in new window tools based on collection queries and stored queries.

Scope

This building block automatically derives MCP tool definitions from the selected collections and stored queries.

The /{apiId}/mcp endpoint can be added to AI tools that support custom MCP connectors, for example Claudeopen in new window and ChatGPTopen in new window.

The /{apiId}/mcp/schema endpoint only has informational character and can be used to check the generated MCP definitions.

Operations

ResourcePathMethodsMedia TypesDescription
MCP
mcp
POST
MCP server endpoint, can be added to AI tools as connector.
MCP Schema
mcp/schema
GET
Check the generated MCP definitions.

Configuration

Options

NameDefaultDescriptionTypeSince
buildingBlock
Always MCP.
string
v2.0
enabled
false
Enable the building block?
boolean
v2.0
included
[]
Specifies which collections and queries should be included in the MCP schema.
object
v4.6
excluded
[]
Specifies which collections and queries should be excluded from the MCP schema.
object
v4.6

This building block does not require or support any additional configuration files.

Examples


- buildingBlock: MCP
  enabled: true
     included:
     collections:
       - "*"
     queries:
       - "*"
   excluded:
     collections:
       - "collection_to_exclude"