MCP Tools 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., "@MCP Tools ServerCan you add 15 and 27?"
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 Tools Server
A simple MCP (Model Context Protocol) server built with Python and FastMCP.
This project is beginner-friendly and demonstrates how to create MCP tools, run an MCP server over HTTP, and test the tools using MCP Inspector.
⨠Features
This server currently provides the following tools:
1. Add Number
Tool: Add_number
Adds two numbers and returns their sum.
Example:
a = 10
b = 20
Result = 302. Random Number
Tool: random_no
Generates a random integer between the provided minimum and maximum values.
Default values:
min_val = 1
max_val = 100Example:
min_val = 1
max_val = 50
Result = 373. Todo Task Management
The server also includes a simple in-memory Todo system.
Available tools:
Tool | Description |
| Add a new task |
| Get all tasks |
| Mark a task as completed |
| Delete a task |
Example task:
{
"id": 1,
"title": "Learn MCP",
"completed": false
}Note: Todo data is stored in memory using a Python list. Data will be lost when the server is restarted.
Related MCP server: MCP Server Basic Example
š¦ MCP Resource
The server also exposes:
info://serverThis resource returns basic server information such as server name, environment, host, port, operating system, runtime, and version.
ā Requirements
Python 3.10+
uvFastMCP
Node.js and
npx(for MCP Inspector)
š Installation
Clone the repository:
git clone <YOUR_GITHUB_REPOSITORY_URL>
cd <YOUR_PROJECT_FOLDER>Create and use the virtual environment with uv:
uv syncIf dependencies are not already defined, install FastMCP:
uv add fastmcpā¶ļø Run the MCP Server
If your Python file is named main.py:
uv run main.pyThe server runs using Streamable HTTP on:
http://127.0.0.1:8000/mcpIf you are using the Todo server example on port 8001, use:
http://127.0.0.1:8001/mcpš Test with MCP Inspector
Start MCP Inspector in another terminal:
npx -y @modelcontextprotocol/inspectorOpen the Inspector URL shown in the terminal, usually:
http://localhost:6274Add the server manually with:
Field | Value |
Transport | Streamable HTTP |
URL |
|
Then connect to the server.
Go to the Tools tab to test:
Add_numberrandom_noadd_tasklist_taskcompleted_taskdelete_task
Go to the Resources tab to test:
info://server
šø MCP Inspector
Example of the server connected to MCP Inspector.
š Project Structure
A simple project can look like this:
MCP Server/
ā
āāā main.py
āāā pyproject.toml
āāā uv.lock
āāā README.md
āāā mcp-inspector.pngāļø How It Works
The basic flow is:
MCP Inspector
|
| Streamable HTTP
v
FastMCP Server
|
+---- Add_number
|
+---- random_no
|
+---- add_task
|
+---- list_task
|
+---- completed_task
|
+---- delete_task
|
+---- info://serveršÆ Learning Goals
This project is useful for learning:
What an MCP server is
How to create MCP tools with
@mcp.toolHow tool arguments work
How to expose resources with
@mcp.resourceHow to run an MCP server using HTTP
How to connect an MCP server to MCP Inspector
How multiple tools can be exposed from one MCP server
Basic CRUD-style application logic with an in-memory data store
š¤ Author
Built as a learning project while exploring MCP and FastMCP.
This server cannot be deployed
Maintenance
Related MCP Connectors
Model Context Protocol server for the Apideck Unified API. Connect any MCP-compatible agent framework to 100+ accounting systems, HRIS platforms, file storage providers, and more through one integration. More information https://www.apideck.com/mcp-server
Model Context Protocol server for todo.vu task management and time tracking.
Model Context Protocol server for Studex tools, notifications, and profile integrations
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceA simple implementation of a Model Context Protocol server that demonstrates core functionality including mathematical tools (add, subtract) and personalized greeting resources.97GPL 3.0
- FlicenseNot gradedqualityDmaintenanceA sample implementation of Model Context Protocol server demonstrating core functionality with simple arithmetic tools and greeting resources.-
- FlicenseNot gradedqualityDmaintenanceA demonstration implementation of a Model Context Protocol server that provides simple mathematical tools (add, subtract) and personalized greeting resources.-
- FlicenseCqualityDmaintenanceA demonstration MCP server that provides a simple addition tool for learning how to create and deploy servers following the Model-Context-Protocol specification. Serves as a basic example for developers getting started with MCP server development.1-