This repository provides a simple implementation of a 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.
- SSE Endpoint: Real-time updates via Server-Sent Events.
- Streamable HTTP (MCP): Supports streamable HTTP responses.
- Easy Deployment: Ready for Cloudflare Workers.
- Local Development: Run locally with Wrangler.
npm installnpm run devnpm run deployYou can test the SSE endpoint using the Model Context Protocol Inspector:
npx @modelcontextprotocol/inspectorThen, 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.
To use this server with claude, you can add the following configuration to claude_desktop.json:
{
"mcpServers": {
"myanime-list": {
"type": "http",
"url": "https://jikan-mcp.dev.nurbxfit.com/mcp",
"command": "npx",
"args": [
"mcp-remote",
"https://jikan-mcp.dev.nurbxfit.com/mcp"
]
}
}
}For authorization with Github Oauth in your own deployment, you need to do the followings:
- Create a Github OAuth App
- Set the callback URL to your server's URL
- Add the client ID and client secret to your environment variables
- Click on your github profile avatar
- Go to Settings
- Scroll down to Developer settings
- Click on OAuth Apps
- Click on New OAuth App
- Fill in the required fields
- Set the callback URL to your server's URL
- Click on Register application
For this you need to use cloudflare secret to securely store the information. use the followings wrangler commands:
wrangler secret put GITHUB_CLIENT_ID
wrangler secret put GITHUB_CLIENT_SECRET
wrangler secret put COOKIE_ENCRYPTION_KEYexample: https://your-server-url.com/callback