Consul MCP Server πŸš€

by kocierik

17 stars
195 downloads
Not rated
GitHub

About

An MCP server providing access to Consul's service discovery and configuration features.

Details

Author
kocierik
GitHub stars
17
Downloads
195
Categories
Cloud Service, Infrastructure, Other

- List, register, and deregister services
- Manage health checks for services
- Get, put, list, and delete KV store keys
- Create and destroy sessions
- Fire and list events
- Create and execute prepared queries
- Get current leader and peers
- Retrieve agent members and self information

Setting up with Highlight

This MCP is not yet compatible with Highlight’s one-click setup. However, you can still use it with Highlight by following these steps:

  1. Download and install Highlight from highlightai.com/download
  2. Navigate to the plugins tab and select "Add Custom Plugin"
  3. Configure the plugin with the settings below
    Plugin Name Consul MCP Server πŸš€
    Command (node, npx, python, etc.)

    Please refer to the README for specific instructions on how to obtain API keys or other required environment variables.

  4. Enable "Start Automatically" if you want the plugin to start when Highlight launches

From the repository

Start the server with node build/index.js after setting environment variables CONSUL_HOST (default localhost) and CONSUL_PORT (default 8500). For Claude Desktop, install automatically via Smithery using npx -y @smithery/cli install @kocierik/consul-mcp-server --client claude.

Claude Desktop / Cursor

Paste into your MCP client config file to install this server.

{
    "mcpServers": {
        "consul mcp server \ud83d\ude80": {
            "consul-mcp-server": {
                "command": "node",
                "args": [
                    "build/index.js"
                ]
            }
        }
    }
}

McpServers

{
    "consul-mcp-server": {
        "command": "node",
        "args": [
            "build/index.js"
        ]
    }
}

Consul MCP Server πŸš€

smithery badge

A Model Context Protocol (MCP) server that provides access to Consul's functionality through a standardized interface.
<p align="center">
<a href="https://glama.ai/mcp/servers/@kocierik/consul-mcp-server">
Consul Server MCP server
</a>
<center>
<video src="https://github.com/user-attachments/assets/81bf7d70-e837-4c99-8312-2c85ccace1f4"></video>
</center>
</p>

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:

node build/index.js

2. The server will connect to Consul and make all functionality available through the MCP interface.

Development

1. Install dependencies:

npm install

2. Build the project:

npm run build

3. Run inspector:

 npm run build && npx @modelcontextprotocol/inspector node build/index.js

Claude config

{
    "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:

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

License

MIT

No reviews yet β€” be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.