返回市场
<中文翻译>
consul-mcp-服务器

<中文翻译> consul-mcp-服务器

作者:kocierik13 星标更新:2025-06-25

项目介绍

【技术文档摘要】: MseeP.ai 安全评估徽章

Consul MCP Server 🚀

smithery 徽章

这是一个提供通过标准化接口访问Consul功能的Model Context Protocol (MCP)服务器。

<p align="center"> <a href="https://glama.ai/mcp/servers/@kocierik/consul-mcp-server"> <img width="380" height="200" src="https://gips1.baidu.com/it/u=712328571,1840676816&fm=3081&app=3081&f=PNG?w=760&h=400" alt="Consul Server MCP服务器" /> </a> <center> <video src="https://github.com/user-attachments/assets/81bf7d70-e837-4c99-8312-2c85ccace1f4"></video> </center> </p>

功能

该服务器提供了以下Consul功能的访问:

服务管理

  • 列出正在运行的服务
  • 注册和注销服务
  • 获取服务信息
  • 列出目录服务
  • 获取目录服务信息

健康检查

  • 注册健康检查
  • 注销健康检查
  • 获取服务的健康检查

键值存储

  • 从KV存储获取值
  • 列出KV存储中的键
  • 将值放入KV存储
  • 从KV存储中删除键

会话

  • 列出会话
  • 销毁会话

事件

  • 触发事件
  • 列出事件

预置查询

  • 创建预置查询
  • 执行预置查询

状态

  • 获取当前领导者
  • 获取当前对等节点

代理

  • 获取代理成员
  • 获取代理自身信息

系统

  • 获取系统健康服务信息

配置

该服务器可以通过环境变量进行配置:

  • CONSUL_HOST:Consul服务器主机(默认:localhost)
  • CONSUL_PORT:Consul服务器端口(默认:8500)

使用方法

  1. 启动服务器:
node build/index.js
  1. 服务器将连接到Consul并通过MCP接口使所有功能可用。

开发

  1. 安装依赖项:
npm install
  1. 构建项目:
npm run build
  1. 运行检查器:
 npm run build && npx @modelcontextprotocol/inspector node build/index.js

Claude配置

{
    "mcpServers": {
        "consul-mcp": {
            "command": "node",
            "args": [
                "/ABSOLUTE/PATH/TO/PARENT/FOLDER/consul-mcp-server/build/index.js"
            ]
        }
    }
}

通过Smithery安装

要通过Smithery自动安装Consul Server for Claude Desktop:

npx -y @smithery/cli install @kocierik/consul-mcp-server --client claude

许可证

MIT