usefastmcp
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., "@usefastmcp Roll a die for me"
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.
usefastmcp
A simple Model Context Protocol (MCP) server built with FastMCP.
This project demonstrates how to expose custom tools as MCP servers over two different transports — stdio (local, default) and HTTP (remote).
Project Structure
usefastmcp/
├── pyproject.toml # Project config & dependencies (fastmcp)
├── uv.lock # Locked dependency versions
├── .python-version # Python 3.13
├── servers/
│ ├── stdioserver.py # MCP server over stdio transport
│ └── httpserver.py # MCP server over HTTP transport
└── .vscode/
└── mcp.json # VS Code Copilot MCP configurationRelated MCP server: mcp-stdio
Requirements
Python 3.13+
uv package manager
Setup
uv syncThis creates the virtual environment and installs all dependencies (including fastmcp).
Available Tools
Both servers expose the same tools:
Tool | Signature | Description |
|
| Returns a random integer between 1 and 6 |
|
| Adds two integers and returns the sum |
Running the Server
1. Stdio Transport (default)
Runs over standard input/output — ideal for local host applications that launch the process directly.
uv run servers/stdioserver.py2. HTTP Transport
Runs as an HTTP server on http://127.0.0.1:8000 — useful for remote clients and web-based access.
uv run servers/httpserver.pyNote: The FastMCP CLI (
fastmcp run <file>) always forces stdio transport and ignores thetransport="http"option in your code. Runuv run servers/httpserver.pydirectly to use HTTP transport.
VS Code Integration
This project includes .vscode/mcp.json for use with VS Code Copilot. The config launches the stdio server automatically.
Open the project in VS Code
Restart VS Code (or reload the window) so the MCP server is picked up
The
roll_diceandadd_numberstools become available to the Copilot agent

Available Tools
2 toolsadd_numberA
Add 2 numbers and returns result
Inputs: first (required), second (required).
roll_diceA
This method will return number between 1 to 6, when asked to roll a dice.
Inputs: no named parameters.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 2 tools
roll_dice and add_number are completely distinct in purpose and behavior. There is no ambiguity about which tool to select for a given task.
Both tool names follow a consistent verb_noun pattern: roll_dice and add_number. The naming style is uniform and predictable.
With only two tools, the server feels quite thin. While each tool has a basic utility purpose, the set is minimal and barely provides enough surface to be considered a coherent collection.
There is no clear domain or lifecycle being covered; the tools are unrelated utilities. Obvious complementary operations (e.g., subtract, multiply, or dice with custom sides) are absent, leaving the surface feeling arbitrary and incomplete.
Maintenance
Related MCP Connectors
Build your own tools from chat: design, test and host them on a shareable MCP server URL.
Host any HTTP API as a standard MCP server; auto-distribute to 12+ mainstream agent platforms.
Related MCP Servers
- AlicenseNot gradedqualityBmaintenanceExposes all CLI commands as MCP tools over stdio or HTTP transport.10 npmApache 2.0
- AlicenseNot gradedqualityDmaintenanceA minimal, zero-dependency MCP server that enables defining and running tools over stdio transport, without extra features like HTTP or resources.26 npm1MIT
- FlicenseNot gradedqualityDmaintenanceA minimal MCP server that exposes tools for addition, echoing text, time lookup, and URL fetching, with support for HTTP and stdio transports.-
- AlicenseNot gradedqualityBmaintenanceMinimal MCP server allowing Python functions to be served as MCP tools over stdio or HTTP, with a built-in client for connecting to MCP servers.124 PyPI2Apache 2.0