Simple MCP Server
Click on "Install 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., "@Simple MCP Serverwhat is 8 + 7?"
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.
š§® 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: Demo MCP Server
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.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- -license-quality-maintenanceA calculator server that exposes mathematical functions as tools (add, subtract, multiply, divide, square, power, square root), enabling language models to perform calculations through Model Context Protocol (MCP).Last updated
- Flicense-qualityDmaintenanceA simple MCP server that provides a calculator tool, dynamic greeting resources, and code review prompts, demonstrating how to build standardized interfaces for LLM applications.Last updated
- Flicense-qualityDmaintenanceA 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.Last updated
- Flicense-qualityCmaintenanceA 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.Last updated
Related MCP Connectors
MCP server for AI agents to plan, verify, and deploy Cloudflare-native apps.
MCP server exposing the Backtest360 engine API as tools for AI agents.
Local-first RAG engine with MCP server for AI agent integration.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/TanvirIslam-BD/simple-MCP-server-built-with-FastMCP'
If you have feedback or need assistance with the MCP directory API, please join our Discord server