MCP Template
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., "@MCP Templateadd 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-template
这是一个基于 FastMCP 框架构建的 MCP (Model Context Protocol) 工具包。
功能
当前实现了一个简单的数学工具:
add: 用于执行两个数字相加的操作
Related MCP server: ddg--mcp5
部署 MCP
{
"mcpServers": {
"mcp-template": {
"args": ["-y","@pidanmoe/mcp-template"],
"command": "npx",
"env": {
// 环境变量
}
}
}
}使用说明
该项目遵循 Model Context Protocol 规范,可以通过标准 I/O 或其他传输方式与支持 MCP 的客户端进行通信。
工具介绍
add
用于执行两个数字相加的操作
必填参数:
a: 第一个操作数b: 第二个操作数
返回: a + b 的值
安装依赖
bun install运行项目
bun run dev调试项目
bun run inspect构建项目
bun run build项目结构
index.ts: 主入口文件,初始化并启动 FastMCP 服务器
tools/add.ts: 实现了
add工具,支持两个数字相加操作utils/logger.ts: 日志工具模块
技术栈
Bun - JavaScript/TypeScript 运行时
FastMCP - MCP 框架
Zod - TypeScript-first schema declaration and validation library
此项目使用 bun v1.2.19 创建。Bun 是一个快速的一体化 JavaScript 运行时。
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
- AlicenseCqualityDmaintenanceA basic MCP server template built with FastMCP that provides simple tools for greeting users, performing math operations, and managing user information. Serves as a starting point for building custom MCP servers with essential functionality examples.4MIT
- -licenseNot gradedqualityNot gradedmaintenanceA basic MCP server template with example tools including message echo and server information retrieval. Built with FastMCP framework and supports both stdio and HTTP transports.
- FlicenseNot gradedqualityDmaintenanceA simple MCP server that provides basic calculator functionality for performing mathematical operations. Built with FastMCP and demonstrates fundamental MCP server implementation patterns.
- FlicenseNot gradedqualityDmaintenanceA minimal demonstration MCP server that provides basic mathematical addition and greeting functionality, serving as a template for building and deploying FastMCP servers.
Related MCP Connectors
Primarily to be used as a template repository for developing MCP servers with FastMCP in Python, P…
This MCP server enables users to perform scientific computations regarding linear algebra and vect…
A very simple remote MCP server that greets you, with a custom icon.
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/pidanmeng/mcp-template'
If you have feedback or need assistance with the MCP directory API, please join our Discord server