MCP Template
@davini-dev
关于 MCP Template
MCP Server Template
基本信息
配置
使用下面的配置,将此服务器添加到你的 MCP 客户端。
{
"mcpServers": {
"my-mcp-stdio": {
"command": "npm",
"args": [
"start"
],
"env": {
"NODE_ENV": "development"
}
},
"my-mcp-sse": {
"url": "http://localhost:3001/sse"
}
}
}工具
未检测到工具
工具是从 README 中自动提取的。维护者可以在 ## Tools 标题下列出工具,即可填充这部分内容。
概览
What is MCP Template?
MCP Template is a CLI tool that generates a starter project for building MCP (Model Context Protocol) servers using the FastMCP framework. It provides a preconfigured TypeScript project with dual transport support (stdio and HTTP), sample definitions for tools, resources, and prompts, and development scripts. It is intended for developers who want to quickly create their own MCP servers.
How to use MCP Template?
Run npx @mcpdotdirect/create-mcp-server or npm init @mcpdotdirect/mcp-server to scaffold a new project. Then install dependencies with your preferred package manager and start the server using npm start (stdio mode) or npm run start:http (HTTP mode). Development modes with auto‑reload are available via npm run dev and npm run dev:http.
Key features of MCP Template
- Built using the FastMCP framework
- Dual transport: stdio and HTTP (SSE)
- Full TypeScript support for type safety
- Extensible with custom tools, resources, prompts
Use cases of MCP Template
- Building personal CLI‑based MCP tools for local development
- Creating shared MCP servers for team collaboration over HTTP
- Rapid prototyping of new MCP servers with a ready‑to‑use structure
FAQ from MCP Template
What transport methods does MCP Template support?
It supports two transports: stdio (local, command‑line mode) and SSE over HTTP (can run locally or remotely and be shared across machines).
How do I connect my MCP Server to Cursor?
In Cursor go to Settings > Features > MCP Servers, add a new server. For stdio, choose type command and enter npm start. For SSE, choose type url and enter http://localhost:3001/sse.
How do I change the HTTP port?
Set the PORT environment variable before starting the HTTP server, for example: PORT=8080 npm run start:http.
How do I test the server during development?
Use FastMCP’s built‑in tools: npx fastmcp dev server.js or npx fastmcp inspect server.ts.
Can I use Node.js instead of Bun?
Yes. The default scripts use Bun, but you can modify the package.json scripts to use Node.js or another runtime of your choice.
开发工具 分类下的更多 MCP 服务器
DevDocs by CyberAGI 🚀
cyberagiincCompletely free, private, UI based Tech Documentation MCP server. Designed for coders and software developers in mind. Easily integrate into Cursor, Windsurf, Cline, Roo Code, Claude Desktop App
TalkToFigma
sonnylazuardiTalkToFigma: MCP integration between AI Agent (Cursor, Claude Code, Codex) and Figma, allowing Agentic AI to communicate with Figma for reading designs and modifying them programmatically.
JetBrains MCP Proxy Server
JetBrainsA model context protocol server to work with JetBrains IDEs: IntelliJ, PyCharm, WebStorm, etc. Also, works with Android Studio
Unity MCP (Server + Plugin)
IvanMurzakAI Skills, MCP Tools, and CLI for Unity Engine. Full AI develop and test loop. Use cli for quick setup. Efficient token usage, advanced tools. Any C# method may be turned into a tool by a single line. Works with Claude Code, Gemini, Copilot, Cursor and any other absolutely for fr
nuxt-mcp / vite-plugin-mcp
antfuMCP server helping models to understand your Vite/Nuxt app better.
评论