https://github.com/kocierik/consul-mcp-server
A consul MCP Server (modelcontextprotocol)
https://github.com/kocierik/consul-mcp-server
Last synced: 10 months ago
JSON representation
A consul MCP Server (modelcontextprotocol)
- Host: GitHub
- URL: https://github.com/kocierik/consul-mcp-server
- Owner: kocierik
- License: mit
- Created: 2025-04-19T13:03:19.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-05-04T09:06:59.000Z (over 1 year ago)
- Last Synced: 2025-05-04T10:22:11.162Z (over 1 year ago)
- Language: TypeScript
- Homepage:
- Size: 38.1 KB
- Stars: 7
- Watchers: 1
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-mcp-servers - consul-mcp - MCP server for managing Consul services, including health checks and the Key-Value Store. (Community Servers)
- awesome-mcp-servers - **consul-mcp-server** - Consul MCP Server for Discovery and Mesh `http` `ai` `git` `github` `typescript` `npm install 3loka/consul-mcp-server` (📦 Other)
- toolsdk-mcp-registry - ❌ consul - value operations, and configuration management without leaving your assistant environment. (node) (Developer Tools / How to Submit)
- metorial-index - Consul Server - Provides standardized access to Consul's service management, health checks, key-value store, sessions, events, prepared queries, status, agent, and system information through a unified MCP interface. (Cloud Services)
- awesome-mcp-security - consul-mcp-server - featured HashiCorp Consul management server providing service discover... | 82 ✅ | 16 | [表示](https://agentseal.org/mcp/https-githubcom-kocierik-consul-mcp-server) | (カテゴリ / ☁️ <a name="cloud--infrastructure"></a>クラウド・インフラ)
- awesome-mcp - kocierik/consul-mcp-server
README
[](https://mseep.ai/app/kocierik-consul-mcp-server)
# Consul MCP Server 🚀
[](https://smithery.ai/server/@kocierik/consul-mcp-server)
A Model Context Protocol (MCP) server that provides access to Consul's functionality through a standardized interface.
## Features
The server provides access to the following Consul functionality:
### Service Management
- List running services
- Register and deregister services
- Get service information
- List catalog services
- Get catalog service information
### Health Checks
- Register health checks
- Deregister health checks
- Get health checks for services
### Key-Value Store
- Get values from KV store
- List keys in KV store
- Put values in KV store
- Delete keys from KV store
### Sessions
- List sessions
- Destroy sessions
### Events
- Fire events
- List events
### Prepared Queries
- Create prepared queries
- Execute prepared queries
### Status
- Get current leader
- Get current peers
### Agent
- Get agent members
- Get agent self information
### System
- Get system health service information
## Configuration
The server can be configured using environment variables:
- `CONSUL_HOST`: Consul server host (default: localhost)
- `CONSUL_PORT`: Consul server port (default: 8500)
## Usage
1. Start the server:
```bash
node build/index.js
```
2. The server will connect to Consul and make all functionality available through the MCP interface.
## Development
1. Install dependencies:
```bash
npm install
```
2. Build the project:
```bash
npm run build
```
3. Run inspector:
```bash
npm run build && npx @modelcontextprotocol/inspector node build/index.js
```
## Claude config
```json
{
"mcpServers": {
"consul-mcp": {
"command": "node",
"args": [
"/ABSOLUTE/PATH/TO/PARENT/FOLDER/consul-mcp-server/build/index.js"
]
}
}
}
```
### Installing via Smithery
To install Consul Server for Claude Desktop automatically via [Smithery](https://smithery.ai/server/@kocierik/consul-mcp-server):
```bash
npx -y @smithery/cli install @kocierik/consul-mcp-server --client claude
```
## License
MIT