HashiCorp Consul MCP
DevOpsstdiohttp-streaming
HashiCorp's official MCP server for Consul, providing integration with the Consul API for service discovery, configuration management, and service mesh operations. Lets AI agents list registered services and their health, read and write KV configuration entries, and inspect mesh intentions and config entries.
Connect
Add this configuration to .claude/mcp.json
Transport:
{
"mcpServers": {
"consul": {
"command": "npx",
"args": [],
"env": {
"CONSUL_HTTP_ADDR": "<YOUR_CONSUL_HTTP_ADDR>",
"CONSUL_HTTP_TOKEN": "<YOUR_CONSUL_HTTP_TOKEN>"
}
}
}
}Tools (3)
list_services
List services registered in the Consul catalog with their health status.
{
"type": "object",
"properties": {
"datacenter": {
"type": "string",
"description": "Optional datacenter to query"
}
}
}get_kv
Read a value from the Consul KV store.
{
"type": "object",
"required": [
"key"
],
"properties": {
"key": {
"type": "string",
"description": "KV path to read"
}
}
}put_kv
Write a value to the Consul KV store.
{
"type": "object",
"required": [
"key",
"value"
],
"properties": {
"key": {
"type": "string",
"description": "KV path to write"
},
"value": {
"type": "string",
"description": "Value to store"
}
}
}Resources
This server does not expose any resources.
Prompts
This server does not expose any prompts.
Server information
- Author
- HashiCorp (@hashicorp)
- License
- MPL-2.0
- Stars
- 0
- Last updated
- July 28, 2026