# Diavlos

> Diavlos is an open-source MCP server for developer tools. MCP server and open protocol for signed messages between agents with human-gated approvals. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** CLI, macOS, Linux, self-hosted
- **Website:** https://diavlos.sh
- **Repository:** https://github.com/harisnopen/diavlos
- **MCP Registry name:** io.github.harisnopen/diavlos
- **Categories:** developer tools, security
- **Listing updated:** 2026-11-16

## About

Diavlos is a small local program that gives agents from different vendors a shared channel. You create a named room, share a signed invite, and agents such as Claude Code, Codex, Cursor, Gemini CLI or ones you wrote can exchange typed messages (task, reply, done, question, claim) across machines. Every agent has a key, every message is signed, messages wait on disk when a peer is offline, and each reader keeps its own bookmark so reading never deletes. The stated delivery guarantee is at-least-once with dedup by id.

For risky operations an agent asks, and a human approves the exact action with a human key. A deployment script verifies and consumes the approval before acting, and an agent's claim that a human agreed does not count. A demo shows a prompt-injection attempt being rejected. It runs over stdio as an MCP server, as a CLI, or through Rust, Python and Node libraries, with public relays or self-hosting. It needs no account or API key and is MIT licensed.

## Features

- **Cross-vendor messaging:** Lets different agents talk through a shared room.
- **Signed messages:** Each message carries its sender's key signature.
- **Human-signed approvals:** Risky actions need an approval signed by a human key.
- **Typed messages:** Task, reply, done, question and claim types.
- **Offline delivery:** Messages wait on disk until the peer returns.
- **Three interfaces:** MCP tools, a command line and libraries.

## Good for

- Let Claude Code on a laptop hand a task to Codex on a server
- Gate a production deploy on a human-signed approval
- Audit an agent conversation afterwards
- Coordinate agents across sandboxes

## Install

### Claude Code (Terminal)

```sh
claude mcp add diavlos -- npx -y diavlos
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "diavlos": {
      "command": "npx",
      "args": [
        "-y",
        "diavlos"
      ]
    }
  }
}
```

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "diavlos": {
      "command": "npx",
      "args": [
        "-y",
        "diavlos"
      ]
    }
  }
}
```

### VS Code (.vscode/mcp.json)

```json
{
  "servers": {
    "diavlos": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "diavlos"
      ]
    }
  }
}
```

### Windsurf (~/.codeium/windsurf/mcp_config.json)

```json
{
  "mcpServers": {
    "diavlos": {
      "command": "npx",
      "args": [
        "-y",
        "diavlos"
      ]
    }
  }
}
```

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "diavlos": {
      "command": "npx",
      "args": [
        "-y",
        "diavlos"
      ]
    }
  }
}
```

## FAQ

### Do I need an account or API key?

No. Diavlos needs no account, key or paid Diavlos service.

### How do approvals work?

A human signs the exact action with their key and a script checks it before acting.

### Which agents work with it?

Claude Code, Codex, Cursor, Gemini CLI, Aider or your own.

### What is the licence?

MIT.

### Is Diavlos free?

Yes. Diavlos is open source, so you can use and self-host it for free.

### How do I add Diavlos to Claude Code?

Run this command in your terminal: claude mcp add diavlos -- npx -y diavlos

### What are the best alternatives to Diavlos?

The closest alternatives to Diavlos are REA, Codebase Memory, GitHub, Serena MCP: the IDE for your agent and XERJ.

## Alternatives

- [REA](https://ai-powered.com/mcp/rea): REA is an open-source MCP server for developer tools.
- [Codebase Memory](https://ai-powered.com/mcp/codebase-memory): Codebase Memory is an open-source MCP server for knowledge and memory.
- [GitHub](https://ai-powered.com/mcp/github-2): GitHub is an open-source MCP server for developer tools.
- [Serena MCP: the IDE for your agent](https://ai-powered.com/mcp/serena-mcp-the-ide-for-your-agent): Serena MCP: the IDE for your agent is an open-source MCP server for developer tools.
- [XERJ](https://ai-powered.com/mcp/xerj): XERJ is an open-source MCP server for knowledge and memory.
- [Ouroboros](https://ai-powered.com/mcp/ouroboros): Ouroboros is an open-source MCP server for developer tools.
- [Claude Code Ultimate Guide](https://ai-powered.com/mcp/claude-code-ultimate-guide): Claude Code Ultimate Guide is an open-source MCP server for ai models and llm tooling.
- [Concord MCP](https://ai-powered.com/mcp/concord-mcp): Concord MCP is a freemium MCP server for developer tools.

---
Source: https://ai-powered.com/mcp/diavlos
