nurbxfit/cf-worker-anime-mcp
If you are the rightful owner of cf-worker-anime-mcp and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.
This repository provides a simple implementation of a Server-Sent Events (SSE) and streamable HTTP MCP server using Hono as the framework for Cloudflare Workers.
SSE & Streamable HTTP MCP Server Example for Cloudflare Workers
This repository provides a simple implementation of a Server-Sent Events (SSE) and streamable HTTP MCP server using Hono as the framework for Cloudflare Workers. You can deploy this server to Cloudflare Workers or run it locally for development and testing.
Features
- SSE Endpoint: Real-time updates via Server-Sent Events.
- Streamable HTTP: Supports streamable HTTP responses.
- Easy Deployment: Ready for Cloudflare Workers.
- Local Development: Run locally with Wrangler.
Getting Started
1. Install Dependencies
npm install
2. Start Development Server
npm run dev
3. Deploy to Cloudflare Workers
npm run deploy
Testing
You can test the SSE endpoint using the Model Context Protocol Inspector:
npx @modelcontextprotocol/inspector
Then, open your browser and navigate to http://localhost:6277 to access the test dashboard.
- Select Transport Type as Streamable HTTP.
- Click Connect to establish a connection.
- Click List Tools to view available tools.
Integration with Claude
To use this server with claude, you can add the following configuration to claude_desktop.json:
{
"mcpServers": {
"myanime-list": {
"type": "http",
"command": "npx",
"args": [
"mcp-remote",
"http://localhost:8787/mcp"
]
}
}
}