Overview
The MCP Server with LangGraph exposes a RESTful API following the Model Context Protocol (MCP) specification with additional custom endpoints for health checks and metrics.Base URL
Authentication
All API requests require JWT authentication.Getting a Token
Using the Token
Include the token in theAuthorization header:
Rate Limiting
Rate limits are enforced via Kong API Gateway when enabled.
When rate limited, you’ll receive a
429 Too Many Requests response:
Response Format
All successful responses follow this structure:Error Handling
Error responses include detailed information:HTTP Status Codes
API Endpoints
MCP Endpoints
Core MCP protocol operations
Health Checks
Kubernetes health probes
Messages
Send messages to the agent
Tools
List and execute tools
SDK Libraries
- Python
- JavaScript
- cURL
OpenAPI Specification
Access the OpenAPI spec interactively:Versioning
The API uses URL versioning:Version 1 is stable and production-ready. Breaking changes will increment the version number.
Common Patterns
Streaming Responses
Batch Requests
Context Management
Next Steps
MCP Endpoints
Explore MCP protocol endpoints
Authentication
Learn about auth and authorization
Health Checks
Kubernetes health probes
Quick Start
Get started in 5 minutes