MCP.so
登录

MCP Template

@myyrakle

关于 MCP Template

MCP Server Example

基本信息

分类

开发工具

运行时

python

传输方式

stdio

发布者

myyrakle

配置

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

{
  "mcpServers": {
    "mcp-template-myyrakle": {
      "command": "uv",
      "args": [
        "run",
        "server.py"
      ]
    }
  }
}

工具

未检测到工具

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

概览

What is MCP Template?

MCP Template is a simple example MCP (Model Context Protocol) server that demonstrates the basic integration of a weather API for the United States. It is built following the official MCP quickstart documentation and is intended for developers learning how to create MCP servers.

How to use MCP Template?

Ensure you have uv (Python Package Manager) installed. Then run the server with uv run server.py. For debugging, use npx @modelcontextprotocol/inspector uv run server.py.

Key features of MCP Template

  • Simple example MCP server implementation
  • Uses USA weather API
  • Based on official MCP quickstart guide
  • Requires only uv as dependency
  • Runnable with a single command

Use cases of MCP Template

  • Learning the Model Context Protocol by example
  • Testing basic MCP server setup and execution
  • Demonstrating how to integrate an external weather data source
  • Prototyping or experimenting with MCP tool definitions

FAQ from MCP Template

What is the purpose of MCP Template?

It is a minimal example server that shows how to build an MCP server with a real‑world data source, based on the official quickstart guide.

What are the runtime requirements?

The only requirement is uv, a Python package manager.

How do I run the server?

Run uv run server.py in the terminal.

How can I debug the server?

Use the MCP inspector by running npx @modelcontextprotocol/inspector uv run server.py.

What data does the server use?

It uses a weather API for the United States.

评论

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