consul-mcp-server
8
Consul MCP Server is a Model Context Protocol server enabling access to Consul's features through a standardized interface. It supports functions like service management, health checks, a key-value store, sessions, events, and more, making it highly useful for managing Consul infrastructure.
Consul MCP Server 🚀
A Model Context Protocol (MCP) server that provides access to Consul's functionality through a standardized interface.
Features
- Service Management: List, register, deregister, and get service information.
- Health Checks: Register, deregister, and get health checks.
- Key-Value Store: Get, list, put, and delete keys and values.
- Sessions: List and destroy sessions.
- Events: Fire and list events.
- Prepared Queries: Create and execute queries.
- Status: Get current leader and peers.
- Agent: Get agent members and self information.
- System: Get system health service information.
Configuration
- Use environment variables
CONSUL_HOST
andCONSUL_PORT
to configure the server.
Usage
- Start the server and connect to Consul to access its functionality via MCP.
Development
- Install dependencies with npm.
- Build the project using npm.
- Run
npx @modelcontextprotocol/inspector
to inspect the server.
Installing via Smithery
Install with npx @smithery/cli install @kocierik/consul-mcp-server --client claude
.
License
MIT