A Model Context Protocol (MCP) server template with Server-Sent Events transport, deployed on Shuttle. MCP servers enable AI agents to securely connect to external data sources and tools, providing real-time access to databases, APIs, and live data streams.
- MCP server with SSE transport
- Counter service with
increment
,decrement
,get_value
, andreset
operations - Ready-to-deploy on Shuttle
This MCP SSE server template is ideal for:
- AI Agent Integration: Connect AI assistants like Claude, GPT, or local models to real-time data streams
- Live Data Monitoring: Stream counter values, metrics, or status updates to AI agents for real-time decision making
- Interactive Applications: Build chatbots or AI assistants that can interact with stateful services
- Prototyping MCP Servers: Use as a starting point for custom MCP servers with Server-Sent Events transport
shuttle run
shuttle deploy
http://localhost:8000/sse
- SSE endpoint for MCP client connectionshttp://localhost:8000/message
- Message endpoint
After deployment, your MCP server will be available at:
https://your-project-name.shuttle.app/sse
- SSE endpoint for MCP client connectionshttps://your-project-name.shuttle.app/message
- Message endpoint
Replace your-project-name
with the actual name of your deployed project (e.g., mcp-z8dz.shuttle.app
).
To use this MCP server with Cursor, add the following to your mcp.json
configuration file:
{
"mcpServers": {
"mcp-sse": {
"url": "https://your-project-name.shuttle.app/sse"
}
}
}
Or if connecting to your local development server:
{
"mcpServers": {
"mcp-sse-local": {
"url": "http://localhost:8000/sse"
}
}
}
Replace your-project-name
with your actual deployed project name.
increment
- Increment counter by 1decrement
- Decrement counter by 1get_value
- Get current counter valuereset
- Reset counter to zero
This template (repo) is a synced replica from shuttle-examples.