model-context-protocol-templates
MCP 模板和指南集合,用於快速開發 Model Context Protocol (MCP) 服務器(server)。
Overview
Model Context Protocol Templates is a collection of templates and guidelines for the rapid development of Model Context Protocol (MCP) servers, designed to standardize the connection between AI and external data sources.
To use the templates, developers can refer to the provided guidelines and examples to set up their own MCP servers, facilitating the integration of large language models with external contexts.
- Structured framework for integrating AI with external data sources. - Collection of templates for quick server development. - Guidelines for standardizing AI interactions with external systems.
- Developing servers that allow AI models to access real-time data.
- Enhancing AI responses by providing contextual information from external sources.
- Standardizing the way AI interacts with various data systems.
Add to your AI client
Use these steps to connect model-context-protocol-templates in Cursor, Claude, VS Code, and other MCP-compatible apps. The same JSON appears in the Use with menu above for one-click copy.
Cursor
Add this to your .cursor/mcp.json file in your project root, then restart Cursor.
.cursor/mcp.json
{
"mcpServers": {
"model-context-protocol-templates-xd3an": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-model-context-protocol-templates-xd3an"
]
}
}
}Claude Desktop
Add this server entry to the mcpServers object in your Claude Desktop config, then restart the app.
~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)
{
"mcpServers": {
"model-context-protocol-templates-xd3an": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-model-context-protocol-templates-xd3an"
]
}
}
}Claude Code
Add this to your project's .mcp.json file. Claude Code will detect it automatically.
.mcp.json (project root)
{
"mcpServers": {
"model-context-protocol-templates-xd3an": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-model-context-protocol-templates-xd3an"
]
}
}
}VS Code (Copilot)
Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.
.vscode/mcp.json
{
"servers": {
"model-context-protocol-templates-xd3an": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-model-context-protocol-templates-xd3an"
]
}
}
}Windsurf
Add this to your Windsurf MCP config file, then restart Windsurf.
~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"model-context-protocol-templates-xd3an": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-model-context-protocol-templates-xd3an"
]
}
}
}Cline
Open Cline settings, navigate to MCP Servers, and add this server configuration.
Cline MCP Settings (via UI)
{
"mcpServers": {
"model-context-protocol-templates-xd3an": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-model-context-protocol-templates-xd3an"
]
}
}
}FAQ
What is the purpose of MCP?
MCP aims to provide a standardized protocol for large language models to connect with external data sources, improving their functionality and response accuracy.
Is there documentation available for using MCP?
Yes! Comprehensive documentation and examples are provided in the repository to assist developers.
Can MCP be used with any AI model?
Yes! MCP is designed to be compatible with various large language models.7:["$","div",null,{"className":"container mx-auto flex flex-col gap-4","children":["$L26","$L27",["$","$L28",null,{"currentProject":{"id":2136,"uuid":"004c5d37-a1b3-4e24-b1c8-1c4821457582","name":"model-context-protocol-templates","title":"model-context-protocol-templates","description":"MCP 模板和指南集合,用於快速開發 Model Context Protocol (MCP) 服務器(server)。","avatar_url":"https://avatars.githubusercontent.com/u/99171846?v=4","created_at":"2025-03-09T03:42:53.673Z","updated_at":"2025-03-12T10:19:30.583Z","status":"created","author_name":"XD3an","author_avatar_url":"https://avatars.githubusercontent.com/u/99171846?v=4","tags":"[]","category":"research-and-data","is_featured":false,"sort":1,"url":"https://github.com/XD3an/model-context-protocol-templates","target":"_self","content":"$29","summary":"$2a","img_url":null,"type":null,"metadata":"{\"star\":\"2\",\"license\":\"\",\"language\":\"Python\",\"is_official\":false,\"latest_commit_time\":\"2025-04-04 21:39:04\"}","user_uuid":null,"tools":null,"sse_url":null,"sse_provider":null,"sse_params":null,"is_official":false,"server_command":null,"server_params":null,"server_config":null,"allow_call":false,"is_innovation":false,"is_dxt":false,"dxt_manifest":null,"dxt_file_url":null,"is_audit":false},"randomProjects":[],"currentServerKey":"$undefined"}]]}]