Back to MCP directory
publicPublicdnsLocal runtime

mcp-server-template-kgi

MCP服务器模板项目,提供从GitHub、PyPI或本地运行MCP服务器的配置示例

article

README

🚀 mcp-server-template 安装配置示例

本项目展示了 mcp-server-template 在不同源(GitHub、PyPI、本地)的安装配置示例,通过 JSON 配置文件呈现相应的命令和参数。

🚀 快速开始

从 GitHub 安装

以下是从 GitHub 安装 mcp-server-template 的配置示例:

{
  "mcpServers": {
    "mcpservertemplate": {
      "command": "uvx",
      "args": [
        "--from",
        "git+https://github.com/narumiruna/mcp-server-template",
        "mcpservertemplate"
      ]
    }
  }
}

从 PyPI 安装

以下是从 PyPI 安装 mcp-server-template 的配置示例:

{
  "mcpServers": {
    "mcpservertemplate": {
      "command": "uvx",
      "args": ["mcpservertemplate"]
    }
  }
}

从本地安装

以下是从本地安装 mcp-server-template 的配置示例:

{
  "mcpServers": {
    "mcpservertemplate": {
      "command": "uv",
      "args": [
        "run",
        "--directory",
        "/home/<用户>/workspace/mcp-server-template",
        "mcpservertemplate"
      ]
    }
  }
}

请根据实际需求选择合适的安装方式,并将上述配置文件应用到相应的环境中。

help

Runtime guide

cloud

Hosted runtime

Hosted servers run from a provider-managed environment. You usually connect the MCP client to the hosted endpoint or follow the provider's authorization flow, without keeping a local process alive

  1. Open provider connection page
  2. Authorize or copy endpoint
  3. Connect from your MCP client
terminal

Local runtime / other methods

Local servers run on your own machine or infrastructure. You normally copy the server_config into your MCP client, install the required package, and provide env variables from env_schema when needed

  1. Copy server_config
  2. Install required package
  3. Fill env variables and restart client