MCP Assistant Toolkit
Provides a send_email tool that sends emails through Gmail SMTP using configured Gmail account credentials.
Click on "Deploy 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., "@MCP Assistant Toolkitwhat's 128 * 37, and what time is it in Asia/Karachi?"
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.
MCP Assistant Toolkit
A Model Context Protocol (MCP) server that exposes a small toolbox (math, web search, email, and time tools) to an AI agent, plus a client that connects a Groq-hosted LLM (via LangChain + LangGraph) to that server so it can decide, on its own, which tool to call to answer a question.
Built as a course project, extending the MCP server/agent pattern taught in class into a fuller, better-documented project.
Architecture
You
|
v
+-------------------------------+ MCP over HTTP +----------------------------+
| client.py | <----------------------> | server.py |
| - LangGraph ReAct agent | | - FastMCP tool server |
| - Groq LLM (reasoning) | | - add / subtract / |
| - dynamically wraps every | | multiply / divide / |
| tool the server exposes | | square_root |
+-------------------------------+ | - google_search |
| - send_email |
| - get_current_time |
+----------------------------+
| |
v v
SerpAPI Gmail SMTPThe client never hard-codes what a tool's inputs look like: it asks the
server for its tool list (name, description, JSON Schema) and builds a
matching Pydantic model automatically. Add a new tool to server.py and the
client picks it up on the next run with no changes needed on its side.
Related MCP server: MCP Google Workspace Server
Project structure
mcp_project/
|-- server.py # MCP tool server (run this first)
|-- client.py # Agent client (run this second)
|-- test_tools.py # Direct smoke test of the server's tools (no LLM needed)
|-- requirements.txt
|-- .env.example # Copy to .env and fill in your own keys
|-- .gitignore
|-- README.md
`-- IMPLEMENTATION.md # Write-up: design decisions, architecture, testingSetup
Create and activate a virtual environment
python -m venv venv source venv/bin/activate # Windows: venv\Scripts\activateInstall dependencies
pip install -r requirements.txtConfigure environment variables
cp .env.example .envThen open
.envand fill in:Variable
Required for
Where to get it
GROQ_API_KEYthe agent's LLM
SERP_API_KEYgoogle_searchtoolGMAIL_USER/GMAIL_APP_PASSWORDsend_emailtoolEvery tool degrades gracefully with a clear error message if its key is missing, so you can run the project with only some keys set.
Running it
Terminal 1 -- start the tool server:
python server.pyTerminal 2 -- verify the tools directly (optional but recommended before your demo):
python test_tools.pyTerminal 2 -- start the agent:
python client.pyThis opens an interactive chat. Try:
What is 128 * 37?What's the current time in Asia/Karachi?Search for the latest news on the Model Context ProtocolEmail a summary of the last answer to you@example.com
Or ask a one-off question without the interactive loop:
python client.py "What's 12 * 8, and what time is it in Asia/Karachi?"Notes for presenting / grading
test_tools.pyis the fastest way to show every tool working live, without depending on the LLM or the internet for the math/time tools.See
IMPLEMENTATION.mdfor the design write-up: what changed from the class assignment, why, and what was learned.Rotate any API keys / app passwords that were used during development before sharing this repository publicly (e.g. on GitHub) --
.envis already excluded via.gitignore, but keys typed into a screen recording or a shared file should still be regenerated.
This server cannot be deployed
Maintenance
Related MCP Connectors
Time and date math for AI agents: Unix timestamp conversion, DST-correct time zone conversion, durations, epoch arithmetic, cron schedules, and holiday countdowns. Eight tools, no key.
Gateway between LLM agents and world data through eight tools and a bundled endpoint catalog.
Deterministic time tools for AI agents: timezone conversion, business-day math, cron interpretation.
500+ deterministic tools for AI agents: math, conversion, validation, hashing, encoding, date/time.
Related MCP Servers
- AlicenseBqualityDmaintenanceA lightweight, modular API service that provides useful tools like weather, date/time, calculator, search, email, and task management through a RESTful interface, designed for integration with AI agents and automated workflows.51MIT
- AlicenseBqualityCmaintenanceExposes Gmail (send/draft) and Google Docs (append) capabilities as tools for any MCP-compliant agent.370ISC
- FlicenseNot gradedqualityBmaintenanceExposes basic calculator tools (add, subtract, multiply, divide) and validates Okta access tokens on tool calls for secure access.-
- AlicenseNot gradedqualityCmaintenanceExposes standardized tools for AI agents to interact with Google Workspace (Gmail and Google Docs) via the MCP protocol.70ISC