agent-06-mcp-server
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
agent-06-mcp-server
A remote Model Context Protocol (MCP) server on Cloudflare Workers, plus a small agent where Llama 3.3 acts as the MCP client and picks tools itself. JSON-RPC 2.0 over Streamable HTTP (stateless), on the free tier. Project 6 of a 10-part agentic AI portfolio.
Live demo: https://agent-06-mcp-server.braylo777.workers.dev · MCP endpoint: https://agent-06-mcp-server.braylo777.workers.dev/mcp

What it is
An MCP server any MCP client can connect to. It exposes 4 tools (
calculator,word_stats,search_notes,utc_time) and 1 resource (notes://all)./api/agent: give it a task in plain English. Llama 3.3 reads the server'stools/list, chooses a tool and its arguments, the call runs through the same JSON-RPC handler, and the model answers from the result.
Related MCP server: remote-mcp-server-authless
Architecture
flowchart LR
C[Any MCP client<br/>Claude, Cursor, Inspector] -->|POST /mcp JSON-RPC 2.0| W[Cloudflare Worker]
U[Demo UI] -->|POST /api/agent| W
W --> RL{Rate limit<br/>5 req/min/IP}
RL --> H[MCP handler<br/>initialize · ping · tools/* · resources/*]
RL --> A[Agent loop]
A -->|tools/list as function schemas| L[Llama 3.3 70B<br/>Workers AI]
L -->|tool call| A
A -->|tools/call| H
H --> T[calculator · word_stats<br/>search_notes · utc_time]
A -->|result + one-line answer| UHow it works
src/agent06/mcp.pyandworker/src/mcp.rs: the MCP server. It validates the JSON-RPC envelope, echoes request ids, answers notifications with 202 and no body, supports batches, and uses the spec's error codes (-32600,-32601,-32602). A tool failure returnsisError: trueinstead of crashing.src/agent06/core.pyandworker/src/core.rs: a safe arithmetic parser (noeval, which Workers forbid).src/agent06/agent.pyandworker/src/agent.rs: LLM-as-MCP-client. It turnstools/listinto function-calling schemas and reads the model's tool call, either nativetool_callsor a JSON-text fallback.Guardrails: 5 requests/min per IP, 500-character cap on agent tasks.
Eval results
Run live against the deployed server (python3 evals/run.py). Raw per-case output is in evals/results.json. Run on Oct 27, 2026.
Metric | Result | Definition |
Protocol compliance | 12/12 (1.00) | JSON-RPC 2.0/MCP checks on |
Tool-call success (LLM) | 8/8 (1.00), 2 not run | Llama 3.3 picked the right tool, the call succeeded, and the result held the expected value |
Tool selection accuracy | 8/8 (1.00), 2 not run | Right tool chosen |
Latency | 94 ms / 209 ms (n=12) | End-to-end from the eval client |
Latency | 1978 ms / 4987 ms (n=8) | Two model calls + one tool call |
2 of the 10 agent cases did not run: the account's shared Workers AI daily free allocation ran out mid-eval. They are excluded from the rates, not counted as passes. Sample sizes are small (12 protocol cases, 8 agent cases), so treat these as smoke-level numbers.
Tests
Python: 10 tests; Rust: 7 test functions (model mocked): every JSON-RPC method, error codes, id echo, notifications, batches, calculator precedence and bad input, word_stats, search_notes, resources, and the model-as-client flow. A corpus of 56 JSON-RPC messages (valid, malformed, notifications, odd ids and params) plus 4 batches gives identical responses for the old JavaScript, the Python and the Rust code. The protocol cases in evals/cases.json pass offline against the Python handler (12/12).
Run it
python3 -m pytest # Python tests
cd worker && cargo test # Rust tests
cd worker && worker-build --release # build the Worker (wasm)
wrangler dev # local
wrangler deploy # free tier, no paid API keys
BASE=https://... python3 evals/run.py # live eval, throttled; writes evals/results.jsonConnect a client: use any MCP client or inspector, choose transport "Streamable HTTP" and URL <your-worker>/mcp.
The previous JavaScript version is on the legacy-js branch and the pre-pycrust tag.
Stack
Cloudflare Workers · Workers AI (Llama 3.3 70B, function calling) · MCP 2025-06-18 · Rust (workers-rs) · Python (pytest)
License
MIT
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
Related MCP Connectors
Remote streamable-HTTP MCP server running on a single Cloudflare Worker. Your assistant gets live Airbnb, Amazon, Booking.com, Google Flights, Maps and Reddit data, social search on X, Instagram and TikTok, the Meta Ad Library, and image/video generation without any keys. Connect your own accounts to let it send WhatsApp or Telegram messages, work an IMAP inbox, manage Meta Ads campaigns and publish to X and LinkedIn. OAuth 2.1 with PKCE; stored credentials are AES-256-GCM encrypted.
Zero-dependency Cloudflare Worker gateway turning websites and REST APIs into MCP tools.
Free, no-key MCP server: token estimates, JSON Schema conversion, MCP configs, tool search.
Remote MCP server for notes, tasks, kanban boards and docs - the Slates agentic workspace
Related MCP Servers
- FlicenseNot gradedqualityCmaintenanceA stateless remote MCP server on Cloudflare Workers without authentication, supporting custom tool registration and integration with MCP clients like Cloudflare AI Playground and Claude Desktop.-
- FlicenseNot gradedqualityNot gradedmaintenanceA stateless remote MCP server deployed on Cloudflare Workers without authentication, implementing the MCP 2026-07-28 specification and supporting custom tools. Can be connected to Cloudflare AI Playground and local MCP clients like Claude Desktop via mcp-remote proxy.-
- FlicenseNot gradedqualityDmaintenanceEnables deploying a stateless remote MCP server on Cloudflare Workers without authentication, implementing the MCP 2026-07-28 specification and compatible with legacy clients for tool calls.-
- FlicenseNot gradedqualityCmaintenanceThis example allows you to deploy a stateless remote MCP server that doesn't require authentication on Cloudflare. It implements the MCP 2026-07-28 specification while remaining compatible with legacy clients for ordinary tool calls.-