MCP Template
A template MCP server built with FastMCP framework that demonstrates basic tool implementation with a simple addition calculator example.
README
mcp-template
这是一个基于 FastMCP 框架构建的 MCP (Model Context Protocol) 工具包。
功能
当前实现了一个简单的数学工具:
add: 用于执行两个数字相加的操作
安装依赖
bun install
运行项目
bun run dev
调试项目
bun run inspect
构建项目
bun run build
部署 MCP
{
"mcpServers": {
"amap-maps": {
"args": ["-y","@pidanmoe/mcp-template"],
"command": "npx",
"env": {
// 环境变量
}
}
}
}
项目结构
- [index.ts](file:///Volumes/SSD/_work/resend-mcp/index.ts): 主入口文件,初始化并启动 FastMCP 服务器
- [tools/add.ts](file:///Volumes/SSD/_work/resend-mcp/tools/add.ts): 实现了
add工具,支持两个数字相加操作 - [utils/logger.ts](file:///Volumes/SSD/_work/resend-mcp/utils/logger.ts): 日志工具模块
使用说明
该项目遵循 Model Context Protocol 规范,可以通过标准 I/O 或其他传输方式与支持 MCP 的客户端进行通信。
技术栈
- Bun - JavaScript/TypeScript 运行时
- FastMCP - MCP 框架
- Zod - TypeScript-first schema declaration and validation library
此项目使用 bun v1.2.19 创建。Bun 是一个快速的一体化 JavaScript 运行时。
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.