Skip to main content

Overview

The MCP Server exposes HTTP endpoints that implement the Model Context Protocol for server-to-server communication. These endpoints enable clients to interact with the LLM-powered agent through a standardized protocol.
MCP (Model Context Protocol) is a standard protocol for connecting AI applications with data sources and tools. Learn more at https://modelcontextprotocol.io

Base URL

Endpoints

Initialize Connection

endpoint
Initialize a new MCP session and retrieve server capabilities.
Request:
Response:
Example:

List Tools

endpoint
Retrieve all available tools the server can execute.
Request:
Response:
Example:

Call Tool

endpoint
Execute a specific tool with provided arguments.
Request:
Response:
Example:

List Resources

endpoint
Retrieve available resources (data sources, knowledge bases, etc.).
Request:
Response:

Read Resource

endpoint
Read the contents of a specific resource.
Request:
Response:

List Prompts

endpoint
Retrieve available prompt templates.
Request:
Response:

Get Prompt

endpoint
Retrieve a specific prompt template with arguments filled in.
Request:
Response:

Send Message

endpoint
Send a message to the agent (streaming or non-streaming).
Request:
Response (Non-Streaming):
Response (Streaming):
Example (Streaming):

Logging

endpoint
Set the logging level for the server.
Request:
Response:

Authentication

All MCP endpoints require authentication. Include a valid JWT token in the Authorization header:
See Authentication API for obtaining tokens.

Error Responses

MCP endpoints return standard HTTP status codes:
Bad Request
Invalid request format or missing required fields.
Unauthorized
Missing or invalid authentication token.
Forbidden
Insufficient permissions to access resource.
Rate Limit Exceeded
Too many requests.
Internal Server Error
Server error during request processing.

SDK Examples

Python

JavaScript/TypeScript

cURL

Rate Limiting

MCP endpoints are subject to rate limiting:
  • Default: 100 requests per minute per user
  • Tool calls: 30 requests per minute per user
  • Streaming: 10 concurrent streams per user
Rate limit headers are included in responses:

WebSocket Support

For real-time bidirectional communication, use the WebSocket endpoint:
Example:

Next Steps

MCP Messages

Message format and types

MCP Tools

Available tools reference

MCP Resources

Resource types and access

Authentication

Get authentication tokens

MCP Protocol Ready: Standardized endpoints for AI application integration!