home / mcp / letta mcp server railway edition
Cloud-optimized HTTP transport edition enabling cloud deployment of Letta-powered agents via streamable HTTP.
Configuration
View docs{
"mcpServers": {
"snycfire-core-letta-mcp-server-railway": {
"url": "https://your-app.up.railway.app/mcp",
"headers": {
"PORT": "8000",
"LETTA_API_KEY": "YOUR_LETTA_API_KEY",
"LETTA_TIMEOUT": "60",
"LETTA_BASE_URL": "https://api.letta.com",
"LETTA_MAX_RETRIES": "3"
}
}
}
}You deploy and run a cloud-optimized MCP server that connects AI clients to Letta.aiโs stateful agents over streamable HTTP. This edition is designed for quick cloud deployment, seamless scaling, and reliable client integration across popular MCP clients.
You connect an MCP client to the server URL to start sending requests for agent management, conversations, and memory tools. The server supports streamable_http transport, which is optimized for cloud deployment and auto-scaling on Railway. Use the provided MCP URL to feed your client configuration, and reference the transport type to ensure compatibility with your MCP client settings. You can test the endpoint with the MCP Inspector or your preferred client to verify connectivity, health, and basic operations like listing agents, sending messages, and querying conversations.
Prerequisites: Python 3.8+ and a Letta API key from api.letta.com. You also need a Railway account for cloud deployment.
Step-by-step setup locally and for cloud deployment follows.
1) Obtain your Letta API key from api.letta.com and keep it handy for environment configuration.
2) For local testing, clone the project and install dependencies, then start the server locally using Python.
The server runs with environment variables that configure the Letta API access and timeouts. In cloud deployments, Railway manages the port and runtime, while keeping the server accessible at the mcp path. You can adjust timeouts and retry behavior via environment variables to suit your workload.
If you encounter connection issues, verify that your Railway app is running and that the MCP URL is reachable. Check the health endpoint and ensure the LETTA_API_KEY is correctly set in your environment. For timeouts, increase the client-side timeout in your MCP configuration.
List all agents with pagination and filtering
Create new agents with memory blocks and tools
Get detailed agent information
Update agent configuration (name, description, model)
Safely delete agents with confirmation
Send messages to agents with streaming support
Retrieve chat history with pagination
Export conversations (markdown, JSON, text)
View all memory blocks for an agent
Update memory blocks (human, persona, custom)
Create custom memory blocks
Search through agent conversation memory
List all available tools with filtering
View tools attached to specific agents
Add tools to agents
Remove tools from agents
Verify API connection and service status
Get usage statistics and analytics