FastMCP Demo
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., "@FastMCP Demo calculate 15 plus 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.
FastMCP Demo - TypeScript MCP Server
A demonstration project to understand the Model Context Protocol (MCP) using TypeScript. This project implements a basic MCP server with tools, resources, and prompts.
What is MCP?
The Model Context Protocol (MCP) is a standardized protocol that enables AI assistants to securely access external data sources and tools. It provides a way for AI models to:
Tools: Execute functions and operations
Resources: Access data and information
Prompts: Use predefined prompt templates
Related MCP server: Hello World MCP Server
Project Structure
fast-mcp/
├── src/
│ └── index.ts # Main MCP server implementation
├── dist/ # Compiled JavaScript (generated)
├── package.json # Project dependencies
├── tsconfig.json # TypeScript configuration
└── README.md # This fileFeatures
This demo server includes:
Tools
hello: A simple greeting tool that welcomes users
calculate: Performs basic arithmetic operations (add, subtract, multiply, divide)
Resources
demo://example: A simple text resource
demo://config: Server configuration in JSON format
Prompts
greet_user: Generates a greeting message for a user
explain_mcp: Provides an explanation of what MCP is
Setup
Install dependencies:
npm installBuild the project:
npm run buildRun the server:
npm startOr use the development mode with auto-reload:
npm run dev
How MCP Works
Server Initialization
The server is created with capabilities for tools, resources, and prompts:
const server = new Server(
{ name: "fast-mcp-demo", version: "0.1.0" },
{
capabilities: {
tools: {},
resources: {},
prompts: {},
},
}
);Transport
This server uses stdio (standard input/output) transport, which means it communicates via stdin/stdout. This is the most common transport for MCP servers.
Request Handlers
Each capability requires request handlers:
ListToolsRequestSchema- Lists available toolsCallToolRequestSchema- Executes a toolListResourcesRequestSchema- Lists available resourcesReadResourceRequestSchema- Reads a resourceListPromptsRequestSchema- Lists available promptsGetPromptRequestSchema- Gets a prompt with arguments
Testing with MCP Clients
To test this server, you'll need an MCP client. Popular options include:
Claude Desktop - Add the server to your MCP configuration
MCP Inspector - A debugging tool for MCP servers
Custom MCP Client - Build your own using the MCP SDK
Example Configuration (Claude Desktop)
Add to your Claude Desktop MCP settings:
{
"mcpServers": {
"fast-mcp-demo": {
"command": "node",
"args": ["/path/to/fast-mcp/dist/index.js"]
}
}
}Learning Path
This project was built incrementally to understand MCP concepts:
✅ Initial Setup - TypeScript configuration and dependencies
✅ Basic Server - Simple server with hello tool
✅ Resources - Added resource reading capabilities
✅ Prompts - Added prompt templates
✅ Advanced Tools - Added calculate tool with error handling
Key Concepts
Tools
Tools are functions that the AI can call. They have:
A name and description
An input schema (JSON Schema)
Execution logic that returns results
Resources
Resources are data sources that can be read. They have:
A URI identifier
A name and description
A MIME type
Content that can be retrieved
Prompts
Prompts are template messages that can be used to guide AI interactions. They have:
A name and description
Optional arguments
Message templates
Next Steps
To extend this demo, consider:
Adding file system resources
Implementing authentication
Adding more complex tools (API calls, database queries)
Using different transports (SSE, HTTP)
Adding logging and error handling middleware
Implementing caching for resources
Resources
FastMCP (Python) - The Python equivalent
License
MIT
Available Tools
2 toolsTool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 2 tools
The two tools have completely distinct purposes: 'calculate' handles arithmetic operations, while 'hello' provides a greeting. There is no overlap or ambiguity between these functions, making it easy for an agent to select the correct tool.
Both tool names follow a consistent pattern of using simple, descriptive verbs ('calculate', 'hello') without any mixing of conventions like camelCase or snake_case. The naming is straightforward and predictable.
With only two tools, the server feels thin and under-scoped for a general-purpose demo. While the tools are distinct, the count is too low to meaningfully cover a domain or provide a coherent set of operations, limiting utility.
The server lacks a clear domain, making it impossible to assess coverage meaningfully. The tools are trivial and unrelated (arithmetic and greeting), offering no cohesive workflow or lifecycle, which severely limits agent functionality.
Maintenance
Related MCP Connectors
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
A simple Typescript MCP server built using the official MCP Typescript SDK and smithery/cli. This…
Related MCP Servers
- AlicenseBqualityDmaintenanceA Model Context Protocol server that provides greeting tools, resources, and prompts, demonstrating client-server interaction using TypeScript.1ISC
- AlicenseDqualityDmaintenanceA minimal Model Context Protocol server in TypeScript that demonstrates MCP-compliant resources and tools for LLMs, featuring simple resources and a basic tool that echoes messages or returns greetings.15Apache 2.0
- -licenseBqualityNot gradedmaintenanceA boilerplate project for quickly developing Model Context Protocol (MCP) servers using TypeScript SDK. Includes example tools for calculations and greetings, plus system information resources.23-
- AlicenseBqualityDmaintenanceA boilerplate project for quickly developing Model Context Protocol (MCP) servers using TypeScript SDK. Includes example tools like calculator and greeting functions, plus system information resources.3ISC