Back to MCP directory
publicPublicdnsLocal runtime

mcp-server-template-h61

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

article

README

🚀 项目配置示例

本项目提供了从不同源安装和运行 mcpservertemplate 的配置示例,包括从 GitHub、PyPI 和本地目录。

💻 使用示例

从 GitHub 安装配置

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

从 PyPI 安装配置

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

从本地安装配置

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

以上配置示例展示了如何根据不同的安装源来配置 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