We4AI Lab: Agent #1 — MCP Tool-Use Agent
activePublished · Last updated
This is a personal learning project, not a product or a service. It uses only public or synthetic data.
Watch "We4AI Lab: Agent #1 — MCP Tool-Use Agent — demo" on YouTube
What it does
MCP Tool-Use Agent connects a language model to external tools through the Model Context Protocol. The agent runs as a host application, opens MCP client connections to one or more MCP servers, and calls the tools those servers expose — the model decides which tool to call and the protocol carries the request and result. The full build is walked through in the video above.
Why I built it
Tool use is where agents stop being demos and start being systems, and MCP is the cleanest separation of “agent” from “tools” available right now. I wanted to learn the protocol by building with it end to end — host, client, and server — rather than reading about it.
Architecture
The build follows MCP’s three-part split:
user ──► host (the agent app + LLM) ──► MCP client ──► MCP server ──► tool
│
└────► MCP server ──► another tool
The host owns the conversation and the model. Each MCP client holds one connection to one MCP server. Each server advertises its tools (names, descriptions, input schemas) and executes calls. Adding a new tool means starting a new server — the host code does not change.
What worked, and what broke
A detailed failure log will be published with the code and follow-up posts. The honest summary so far: the protocol separation itself is the win — tools plug in cleanly once the host–client–server plumbing is in place — and the plumbing is where the time goes.
Cost, latency, and eval numbers
Not published yet. A measurement harness (fixed task set, per-run cost and latency logging) is the next piece of this project, and the numbers will appear on this page with their method and date — this site does not publish unmeasured claims.
What’s next
- Publish the evaluation harness and its first results.
- Add a second MCP server to show multi-tool routing.
- Write up the host–client–server setup as a step-by-step post.
Stack and tools
- Python
- Model Context Protocol
- LLM APIs
Frequently asked questions
What is the Model Context Protocol (MCP)?
MCP is an open protocol that standardizes how an AI application (the host) talks to external tools and data sources through MCP servers, using a client per connection. Instead of bespoke integrations per tool, the agent discovers and calls tools through one protocol.
Is this a product I can sign up for?
No. It is a personal learning project built on my own time. There is no hosted service, no support, and nothing for sale.
Where is the code?
On my GitHub profile (github.com/rpalsaxena), linked from this page once the repository is public. The video walkthrough is embedded above.
What data does the agent use?
Only public or synthetic data. No private, employer, or client data is used in any project on this site.
Related projects
geekyrahul.in — this website
This site: a statically generated personal site built to be read by people and AI crawlers alike — llms.txt, Markdown endpoints, and per-page structured data.
- meta
- astro
- geo
Last updated: