Simple 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.
๐งฎ Simple MCP Server (built with FastMCP)
A "Hello World" MCP (Model Context Protocol) server built with FastMCP โ a small calculator server you can talk to over in-memory, HTTP, and STDIO transports, plus a LangGraph ReAct agent that uses its tools.
It exposes:
Type | Name | Description |
๐ ๏ธ Tool |
| Add two integers |
๐ ๏ธ Tool |
| Subtract |
๐ Resource |
| Returns a template message |
๐ Resource |
| Reads a real file from |
๐ฌ Prompt |
| A reusable "review this code" template |
Project structure
simple-MCP-server-built-with-FastMCP/
โโโ server.py # the FastMCP server (tools + resources + prompt)
โโโ client_inmemory.py # test in the same process (no network)
โโโ client_http.py # connect over HTTP
โโโ client_stdio.py # spawn the server as a subprocess (STDIO)
โโโ agent_example.py # LangGraph ReAct agent that uses the tools
โโโ path/ # files served by the file resource
โ โโโ README.txt
โ โโโ examples.txt
โโโ requirements.txt
โโโ .env.example # API key template (for the agent only)
โโโ README.mdRelated MCP server: MCP Calculator Demo
Setup
cd simple-MCP-server-built-with-FastMCP
python -m venv .venv
# Windows (PowerShell):
.\.venv\Scripts\Activate.ps1
# macOS / Linux:
source .venv/bin/activate
pip install -r requirements.txtRun it
1. Quick test โ in-memory (no network, no API key)
python client_inmemory.pyCalls the tools, lists them, reads both resources, and renders the prompt.
2. HTTP transport
Terminal A (start the server):
python server.py http # serves http://127.0.0.1:8000/mcpTerminal B (run the client):
python client_http.py3. STDIO transport
python client_stdio.py # spawns server.py itself โ nothing to start first4. ReAct agent (needs an API key)
# one-time: copy the template and add a key
Copy-Item .env.example .env # then edit .env (GROQ_API_KEY is free)
python agent_example.pyThe agent loads the MCP tools, then answers "What is 8 + 7? Use the tools." by
actually calling the add tool.
๐ก Groq is free โ get a key at console.groq.com. The agent uses Groq if
GROQ_API_KEYis set, otherwise OpenAI.
How MCP transports differ
In-memory โ client and server share one Python process (simplest; for testing).
HTTP โ server runs as a web service; clients connect by URL (good for remote/shared).
STDIO โ client launches the server as a child process and talks over stdin/stdout (good for local tools).
The same tools/resources/prompt work over all three โ only the "wire" changes.
Credits
Based on the IBM Skills Network lab "Hello World of MCP Servers." Built with FastMCP, LangGraph, and langchain-mcp-adapters.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelogโฆ
This server cannot be deployed
Maintenance
Related MCP Connectors
MCP server for your apps' tools and custom tools, plus hosted AI agents and approval-gated workflows
MCP server for langchain documentation, generated by doc2mcp.
Nifty's MCP server โ exposes tasks, projects, messages, and files as tools for AI agents.
MCP server for agentverse documentation, generated by doc2mcp.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceA simple MCP server that provides a calculator tool, dynamic greeting resources, and code review prompts, demonstrating how to build standardized interfaces for LLM applications.-
- FlicenseNot gradedqualityDmaintenanceA simple demonstration MCP server built with FastMCP that exposes basic calculator operations (add, subtract, multiply, divide) as tools for MCP clients like GitHub Copilot Agent mode.-
- FlicenseNot gradedqualityDmaintenanceA demonstration MCP server that provides math (add/multiply) and weather tools, connecting via stdio and streamable HTTP, and integrates with LangChain and LangGraph for agentic workflows.-
- AlicenseAqualityDmaintenanceA minimal MCP server example demonstrating Tools, Resources, and Prompts. It enables calculations, time queries, note management, and code review prompts via stdio transport.3MIT