MCP.so
登录

MCP Server Cookiecutter Template

@shubhamgupta-dat

关于 MCP Server Cookiecutter Template

Easy Manageable Way to create your own MCP Server

基本信息

分类

开发工具

运行时

python

传输方式

stdio

发布者

shubhamgupta-dat

配置

使用下面的配置,将此服务器添加到你的 MCP 客户端。

{
  "mcpServers": {
    "mcp-server-template-shubhamgupta-dat": {
      "command": "uv",
      "args": [
        "venv"
      ]
    }
  }
}

工具

未检测到工具

工具是从 README 中自动提取的。维护者可以在 ## Tools 标题下列出工具,即可填充这部分内容。

概览

What is MCP Server Cookiecutter Template?

A Cookiecutter template for creating Model Context Protocol (MCP) servers with Python. It provides a complete project structure with sample implementations of tools, resources, and prompts, and integrates FastMCP, Docker, and Claude Desktop.

How to use MCP Server Cookiecutter Template?

Install Cookiecutter, then run cookiecutter gh:shubhamgupta-dat/mcp-server-cookiecutter. Navigate to the generated project, run make setup, activate the virtual environment, and use make dev for development or make install to add it to Claude Desktop.

Key features of MCP Server Cookiecutter Template

  • Complete project structure pre-configured for MCP servers
  • Sample implementations of tools, resources, and prompts
  • FastMCP integration for decorator-based development
  • Lifecycle management with resource initialization and cleanup
  • Modern Python practices with type hints and documentation
  • Docker support for containerized deployment

Use cases of MCP Server Cookiecutter Template

  • Create a custom MCP server to provide real‑time data to Claude
  • Build tools that let LLMs interact with external APIs
  • Set up a reusable project with standardized prompts and resources
  • Quickly scaffold a production‑ready MCP server with testing and Docker

FAQ from MCP Server Cookiecutter Template

What is MCP (Model Context Protocol)?

MCP is an open standard that lets applications provide context for LLMs like Claude in a standardized way, exposing Tools, Resources, and Prompts.

What are the prerequisites?

Python 3.12+ and Cookiecutter installed via pip (pip install cookiecutter).

How can I test my generated server?

Run make test in the project directory to execute tests with pytest.

How do I run the server in Docker?

Use make docker-build to build the image and make docker-run to run the container on port 8000.

How is the server configured?

Via environment variables prefixed with MCP_ (e.g., MCP_API_KEY) or a config file specified by the MCP_CONFIG_FILE environment variable.

评论

开发工具 分类下的更多 MCP 服务器