student-mcp-server
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., "@student-mcp-serverCount words and characters in 'Hello world, MCP!'"
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 Project (Model Context Protocol Server)
A beginner-friendly MCP server built with FastMCP, plus a demo client that proves it works.
What is MCP?
MCP (Model Context Protocol) is a standard way for an AI assistant to call "tools" that live on a separate server, instead of the tools being hardcoded inside the AI app itself. This makes tools reusable across many different AI apps (Claude Desktop, custom agents, etc.)
Related MCP server: calculator-mcp-server
What's in this project
mcp_server.py— the MCP server. It exposes 4 tools:add_numbers— adds two numberscalculator— evaluates a math expressionget_current_time— returns today's date and timeword_counter— counts words and characters in text
client_demo.py— a script that connects to the server and calls every tool, printing the results, to prove the server works.
How to run it
Install requirements:
pip install -r requirements.txtRun the demo client (this automatically starts the server too, since they run in the same process for this simple demo):
python client_demo.pyYou should see the list of tools and each tool's result printed.
(Optional) Run the server on its own, so other MCP clients (like Claude Desktop) can connect to it:
python mcp_server.py
Connecting this server to Claude Desktop (optional, for submission)
Add this to your Claude Desktop MCP config file:
{
"mcpServers": {
"student-mcp-server": {
"command": "python",
"args": ["mcp_server.py"]
}
}
}After restarting Claude Desktop, its 4 tools (add_numbers, calculator, get_current_time, word_counter) become available for Claude to call.
How it works
@mcp.toolturns a normal Python function into an MCP tool — FastMCP automatically generates the schema from the function's type hints and docstring.Client(mcp)connects a client directly to the server object for an easy local demo. In production, a client usually connects to a server running as a separate process or over a network instead.
This server cannot be deployed
Maintenance
Related MCP Connectors
500+ deterministic tools for AI agents: math, conversion, validation, hashing, encoding, date/time.
60+ units, live FX, timezones, and date arithmetic for AI agents.
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.
Loan & mortgage calculator, compound interest, ROI, crypto prices, FX conversion for AI agents.
Related MCP Servers
- FlicenseAqualityDmaintenanceEnables mathematical calculations through basic arithmetic operations including addition, subtraction, multiplication, division, exponentiation, and logarithms. Provides a simple interface for AI agents to perform mathematical computations.63-
- AlicenseNot gradedqualityDmaintenanceProvides a comprehensive set of mathematical functions as MCP tools, enabling language models to perform calculations including arithmetic, trigonometry, logarithms, and more.41 npm1MIT
- FlicenseBqualityCmaintenanceProvides computational tools for systematic reasoning, including boolean evaluation, date arithmetic, object counting, state tracking, and format validation, to enhance agent capabilities and eliminate calculation errors in reasoning tasks.74-
- FlicenseAqualityCmaintenanceEnables arithmetic calculation, current time lookup, and attendance retrieval through natural language tool calls.3-