入门攻略
MCP提交
探索
Create MCP Server
一个基于FastMCP框架的CLI工具,用于快速搭建MCP服务器,支持stdio和HTTP两种传输方式,包含工具、资源和提示的定义结构,提供TypeScript支持和开发脚本配置。
2.5分
27
2025-04-23 14:00:30
概述
安装
内容详情
替代品
What is MCP Server Template?
This template helps developers quickly set up a custom MCP server that connects AI models with applications. It provides the foundation for building tools that can be used directly in Cursor IDE or other MCP-compatible clients.How to use this template?
Simply run the creation command, install dependencies, and start the server in either command-line (stdio) or web (HTTP) mode. The server can then be connected to compatible clients like Cursor IDE.When should you use it?
Ideal when you need to: 1) Build custom AI-powered tools for development workflows 2) Create shared AI resources for your team 3) Develop specialized prompts or tools that integrate with your code editorKey Features
FastMCP FrameworkBuilt on FastMCP for simplified MCP server implementation with TypeScript support
Dual Transport ModesSupports both stdio (command-line) and HTTP (web) communication protocols
Easy ExtensibilitySimple structure for adding custom tools, resources and prompts
TypeScript ReadyFull TypeScript support with modern configuration for type safety
Pros and Cons
Advantages
Quick setup with pre-configured template
Works seamlessly with Cursor IDE
Flexible deployment options (local or remote)
Type-safe development experience
Limitations
Requires basic Node.js/TypeScript knowledge for customization
HTTP mode needs manual port management in team environments
Limited to MCP protocol compatible clients
Getting Started
Create your projectInitialize a new MCP server project using the template
Install dependenciesInstall required packages using your preferred package manager
Choose operation modeDecide whether to run in stdio (CLI) or HTTP (web) mode based on your needs
Connect to clientConfigure your MCP client (like Cursor IDE) to connect to the running server
Usage Scenarios
Personal Coding AssistantCreate custom coding prompts that understand your specific project structure
Team Knowledge BaseBuild shared resources accessible to all team members through their editors
Custom Dev ToolsImplement project-specific utilities like database query builders
Frequently Asked Questions
1
What's the difference between stdio and HTTP modes?Stdio runs locally in your terminal while HTTP mode allows remote connections. Stdio is simpler for personal use, HTTP enables team collaboration.
2
Can I use this without Cursor IDE?Yes, any MCP-compatible client can connect, but Cursor provides the best integration experience.
3
How do I add custom tools?Edit the tools.ts file following the examples. Each tool needs a name, description, parameters schema, and execute function.
4
What port does HTTP mode use?Default is 3001, but you can change it with PORT environment variable.
Additional Resources
FastMCP GitHubFramework documentation and source code
MCP Official DocsModel Context Protocol specifications
Cursor IDEPrimary MCP client for development workflows
精选MCP服务推荐

Firecrawl MCP Server
Firecrawl MCP Server是一个集成Firecrawl网页抓取能力的模型上下文协议服务器,提供丰富的网页抓取、搜索和内容提取功能。
TypeScript
2,956
5分

Duckduckgo MCP Server
已认证
DuckDuckGo搜索MCP服务器,为Claude等LLM提供网页搜索和内容抓取服务
Python
212
4.3分

Figma Context MCP
Framelink Figma MCP Server是一个为AI编程工具(如Cursor)提供Figma设计数据访问的服务器,通过简化Figma API响应,帮助AI更准确地实现设计到代码的一键转换。
TypeScript
6,102
4.5分

Edgeone Pages MCP Server
EdgeOne Pages MCP是一个通过MCP协议快速部署HTML内容到EdgeOne Pages并获取公开URL的服务
TypeScript
88
4.8分

Baidu Map
已认证
百度地图MCP Server是国内首个兼容MCP协议的地图服务,提供地理编码、路线规划等10个标准化API接口,支持Python和Typescript快速接入,赋能智能体实现地图相关功能。
Python
323
4.5分

Exa Web Search
已认证
Exa MCP Server是一个为AI助手(如Claude)提供网络搜索功能的服务器,通过Exa AI搜索API实现实时、安全的网络信息获取。
TypeScript
1,429
5分

Minimax MCP Server
MiniMax Model Context Protocol (MCP) 是一个官方服务器,支持与强大的文本转语音、视频/图像生成API交互,适用于多种客户端工具如Claude Desktop、Cursor等。
Python
364
4.8分

Context7
Context7 MCP是一个为AI编程助手提供实时、版本特定文档和代码示例的服务,通过Model Context Protocol直接集成到提示中,解决LLM使用过时信息的问题。
TypeScript
4,853
4.7分