Chakudya MCP Server
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Chakudya MCP ServerWhat Malawian foods are high in iron?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Chakudya MCP Server
An MCP (Model Context Protocol) server that exposes the Chakudya Nutrition Registry (CNR) API — https://chakudya-api.edisontaimu9.workers.dev — as a set of MCP tools, so any MCP-compatible client (Claude, Claude Code, other LLM agents) can search Malawian food data, run clinical nutrition lookups, and query the RAG knowledge base directly.
This is a new, separate layer. It does not replace or modify the Chakudya Worker. It's a small Node/TypeScript HTTP service that sits in front of your existing API and translates MCP tool calls into plain HTTP requests against the routes your Worker already serves.
MCP Client (Claude, etc.)
│ Streamable HTTP (JSON-RPC over HTTP + SSE)
▼
Chakudya MCP Server (this project)
│ plain HTTPS fetch()
▼
Chakudya Worker API (unchanged) → Supabase / Cohere / Groq / USDA / OFF / FatSecretWhy a separate server, not a Worker
The official MCP TypeScript SDK's StreamableHTTPServerTransport is built for Node's
http.IncomingMessage/ServerResponse. Cloudflare Workers use the Fetch API instead, and the SDK's
web-standard variant (WebStandardStreamableHTTPServerTransport) is newer and less battle-tested for
production session management. Running this as a plain Node service (Docker, Render, Fly.io, a VPS,
etc.) is the more standard, better-documented path today, and it keeps this concern fully decoupled from
your Worker's deploy cycle. Nothing stops you from porting it to the web-standard transport on Workers
later if you want a single-platform deploy — the tool logic in src/tools/* doesn't care which
transport wraps it.
Related MCP server: mealie-mcp
Tools
All 15 tools call your existing Chakudya Worker over HTTPS — none of them touch Supabase, Cohere, or
Groq directly, and none of them need ADMIN_API_KEY (every route they use is public).
Tool | Chakudya route(s) used |
|
|
|
|
|
|
| same as above, looped and summed across multiple items |
|
|
|
|
|
|
|
|
|
|
| none — pure BMI/BMR (Mifflin-St Jeor)/TDEE math |
|
|
|
|
|
|
|
|
|
|
disease_information and medicine_information always return an educational disclaimer alongside the
answer and are prompted to avoid diagnosis/prescribing language — but they're still LLM-generated text
grounded on whatever's in your RAG knowledge base, not a verified medical reference. Treat them as a
starting point for a learner, same as the rest of the RAG-backed tools.
Project layout
src/
├── index.ts Express app, Streamable HTTP session wiring, graceful shutdown
├── config/env.ts Zod-validated environment config, loaded once at startup
├── clients/chakudyaClient.ts Fetch wrapper for the Chakudya Worker (GET/POST, error normalization)
├── server/
│ ├── createServer.ts Builds one McpServer instance and registers all tool modules
│ └── security.ts Bearer auth + per-IP rate limiting for this server's /mcp endpoint
├── tools/
│ ├── foodTools.ts
│ ├── clinicalTools.ts
│ ├── ragTools.ts
│ └── educationTools.ts
└── utils/
├── logger.ts Structured JSON logging
└── toolResult.ts Consistent success/error shaping for every tool handlerEnvironment variables
Copy .env.example to .env and fill in:
Variable | Required | Notes |
| no (defaults to your Worker) | Already set to |
| no | Not used by any current tool; only needed if you add an admin-gated tool later |
| no (default | |
| yes in production | Bearer token MCP clients must send. Server refuses to start in production without it |
| no | Comma-separated CORS origins; leave blank to disable browser access |
| no (default | Per-IP cap on this server's own |
| no (default | Set to |
Security considerations
Auth is mandatory in production.
env.tsexits the process at startup ifNODE_ENV=productionandMCP_AUTH_TOKENis unset — this is a deliberate fail-closed check, not just a warning.This server sits in front of your rate-limited RAG routes.
/rag/askon your Worker is capped at 15 req/min per IP — but that's per client IP as seen by the Worker, which would be this server's IP once deployed, shared across everyone using it. The MCP-level rate limiter (MCP_RATE_LIMIT_PER_MIN) exists so one misbehaving MCP client can't silently exhaust that budget for everyone else. Tune it down if you expect multiple concurrent MCP clients.No admin key is embedded or required. Every tool calls a public CNR route. If you add an admin-gated tool later, keep
CHAKUDYA_ADMIN_API_KEYserver-side only — never expose it to the MCP client.Session state is in-memory, per-process. Fine for a single instance. If you ever scale to multiple instances behind a load balancer, either enable sticky sessions (route by
Mcp-Session-Id) or swap thetransportsmap insrc/index.tsfor a shared store.CORS is off by default. Only enable
MCP_ALLOWED_ORIGINSif you have a specific browser-based MCP client; server-to-server MCP clients (Claude Desktop, Claude Code, etc.) don't need it.
Running locally (Termux)
cd ~
git clone https://github.com/edisontaimu9-ui/chakudya-mcp-server.git
cd chakudya-mcp-server
cp .env.example .env
# edit .env: set MCP_AUTH_TOKEN to a long random string
npm install
npm run build
npm startOr for iterative dev with auto-reload:
npm run devHealth check: curl http://localhost:8787/health
Connecting an MCP client
Point any Streamable-HTTP-capable MCP client at:
POST/GET/DELETE https://<your-deployed-host>/mcp
Header: Authorization: Bearer <MCP_AUTH_TOKEN>For Claude Desktop / Claude Code, add it as a remote MCP server pointing at that URL with the same
bearer token. Consult Anthropic's current docs for the exact config file syntax, since that's changed
over time — check https://docs.claude.com for the latest mcpServers remote-server format.
Deployment: Render (recommended — free, no credit card)
This repo includes render.yaml, so Render's Blueprint feature deploys it without any manual dashboard
configuration.
Push this repo to GitHub (commands below).
In the Render dashboard: New → Blueprint, connect your GitHub account, pick the
chakudya-mcp-serverrepo. Render readsrender.yamlautomatically.Render provisions the service on the Free plan and auto-generates a random
MCP_AUTH_TOKEN(viagenerateValue: true). After the first deploy, go to the service's Environment tab to copy that generated token — you'll need it in your MCP client config.Deploy. Your MCP endpoint will be
https://chakudya-mcp-server.onrender.com/mcp(Render may append a random suffix if that name's taken — check the dashboard for your actual URL).
The free-tier sleep problem, and the fix
Render's free web services spin down after 15 minutes with no traffic, then take 30-60 seconds to wake
on the next request. That's fine for a health check, but it can drop an in-progress MCP session (session
state lives in memory — see src/index.ts) if the client goes quiet mid-conversation for too long.
Fix: keep it warm with a free uptime monitor pinging /health every 5-10 minutes.
Sign up at uptimerobot.com (free plan, no card).
Add a new HTTP(s) monitor:
URL:
https://<your-service>.onrender.com/healthInterval: 5 minutes
Save.
/healthis unauthenticated by design, specifically so this monitor doesn't need yourMCP_AUTH_TOKEN.
This keeps the service warm 24/7 within the free plan's 750 hrs/month (well under the cap for one service pinged this way).
Updating after a code change
Render auto-redeploys on every push to your connected branch — no extra step needed:
git add .
git commit -m "Update MCP server"
git pushWatch the deploy in the Render dashboard's Events tab; it typically finishes in 1-2 minutes for a project this size.
Other deployment options
Docker anywhere
docker build -t chakudya-mcp-server .
docker run -d -p 8787:8787 \
-e NODE_ENV=production \
-e MCP_AUTH_TOKEN=<long-random-string> \
-e CHAKUDYA_API_BASE_URL=https://chakudya-api.edisontaimu9.workers.dev \
--name chakudya-mcp chakudya-mcp-serverOption C — Plain VPS with a process manager
npm install --omit=dev
npm run build
npx pm2 start dist/index.js --name chakudya-mcpPut it behind Nginx/Caddy for TLS termination if you're not already fronting it with something that handles HTTPS.
Termux deployment (git workflow)
cd ~
# first time only:
git clone https://github.com/edisontaimu9-ui/chakudya-mcp-server.git
cd chakudya-mcp-server
# after any file update:
cp /storage/emulated/0/Download/<updated-file>.ts src/<path>/<updated-file>.ts
git add .
git commit -m "Update MCP server"
git pushThen redeploy on whichever platform you chose (Render/Railway/Fly auto-redeploy on push if you connected the GitHub repo; otherwise trigger a manual redeploy or re-run the Docker/pm2 commands above on your host).
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Flicense-qualityCmaintenanceExposes tools from the Ecuro Light API for managing clinical appointments, patient records, and clinic availability. It enables users to perform healthcare management tasks such as scheduling, patient search, and report generation through MCP-compatible clients.Last updated
- AlicenseDqualityAmaintenanceExposes every endpoint of the Mealie REST API as MCP tools, enabling LLMs to manage recipes, meal plans, shopping lists, and more.Last updated1001,2091MIT
- Flicense-qualityCmaintenanceExposes retrieval capabilities of two RAG systems as authenticated MCP tools, allowing any MCP client to perform graph-augmented and hybrid retrieval with JWT auth.Last updated1
- Alicense-qualityBmaintenanceExposes RAG and document intelligence pipelines as 8 composable tools for MCP-compatible clients, enabling querying, indexing, classifying, extracting, and assessing documents.Last updated1MIT
Related MCP Connectors
Hosted MCP endpoint with realistic fake data for prototyping agents. 12 tools, no setup.
Hosted MCP server exposing US hospital procedure cost data to AI assistants
MCP server exposing the Backtest360 engine API as tools for AI agents.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/edisontaimu9-ui/chakudya-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server