# Alphorn

> Alphorn is an open-source MCP server for communication. Gives AI agents a send_notification tool that reaches Slack, Telegram, email or SMS. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** CLI, Slack, telegram, discord, self-hosted
- **Website:** https://docs.alphorn.dev/ai-agents/mcp/
- **Repository:** https://github.com/alphorn-dev/mcp
- **MCP Registry name:** io.github.alphorn-dev/mcp
- **Categories:** communication, developer tools
- **Listing updated:** 2026-11-15

## About

Hooks fire on fixed events, but this server lets the agent decide when something deserves a ping: a long task finishing, a blocked decision, or a request to tell you. It exposes one tool, `send_notification`, and posts to a webhook you create in Alphorn.

The tool takes a required message of up to 4,000 characters, plus an optional title, a priority from 1 to 5 and tags. The suggested priorities are 2 for finished, 3 for needs input, 4 for blocked or failed and 5 for urgent. Filters in Alphorn then route by priority or tag, for example SMS only for priority 4 and above, or completed tasks to Slack. On errors such as an invalid key, a disabled webhook or an exhausted quota, the tool explains the problem so the agent can report it instead of retrying.

The package `@alphorn/mcp` runs locally through npx on Node.js 20 or later. It works with hosted Alphorn or a self-hosted instance, and is AGPL-3.0-or-later.

## Features

- **Agent-decided alerts:** The agent chooses when to notify, rather than waiting for a fixed hook event.
- **Priority levels:** Priorities 2 to 5 mark finished, needs input, blocked or failed, and urgent.
- **Tag-based routing:** Tags let Alphorn filters send different messages to different channels.
- **Plain-language errors:** Invalid keys, disabled webhooks and exhausted quotas are reported clearly.
- **Claude Desktop bundle:** A one-click alphorn.mcpb bundle asks for the endpoint URL and key.
- **Self-hosting support:** Points at hosted Alphorn or your own instance's base URL.

## Good for

- Get an SMS when a coding agent is blocked
- Post a Slack message when a long task finishes
- Route urgent agent alerts to a different channel than routine ones
- Notify yourself from Claude Code, Cursor or Codex overnight runs

## Install

### Claude Code (Terminal)

```sh
claude mcp add mcp --env ALPHORN_WEBHOOK_URL='<ALPHORN_WEBHOOK_URL>' --env ALPHORN_API_KEY='<ALPHORN_API_KEY>' -- npx -y @alphorn/mcp
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@alphorn/mcp"
      ],
      "env": {
        "ALPHORN_WEBHOOK_URL": "<ALPHORN_WEBHOOK_URL>",
        "ALPHORN_API_KEY": "<ALPHORN_API_KEY>"
      }
    }
  }
}
```

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

```json
{
  "mcpServers": {
    "mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@alphorn/mcp"
      ],
      "env": {
        "ALPHORN_WEBHOOK_URL": "<ALPHORN_WEBHOOK_URL>",
        "ALPHORN_API_KEY": "<ALPHORN_API_KEY>"
      }
    }
  }
}
```

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

```json
{
  "servers": {
    "mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@alphorn/mcp"
      ],
      "env": {
        "ALPHORN_WEBHOOK_URL": "<ALPHORN_WEBHOOK_URL>",
        "ALPHORN_API_KEY": "<ALPHORN_API_KEY>"
      }
    }
  }
}
```

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

```json
{
  "mcpServers": {
    "mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@alphorn/mcp"
      ],
      "env": {
        "ALPHORN_WEBHOOK_URL": "<ALPHORN_WEBHOOK_URL>",
        "ALPHORN_API_KEY": "<ALPHORN_API_KEY>"
      }
    }
  }
}
```

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

```json
{
  "mcpServers": {
    "mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@alphorn/mcp"
      ],
      "env": {
        "ALPHORN_WEBHOOK_URL": "<ALPHORN_WEBHOOK_URL>",
        "ALPHORN_API_KEY": "<ALPHORN_API_KEY>"
      }
    }
  }
}
```

## Tools

- `send_notification`: Sends a message with optional title, priority and tags through an Alphorn webhook.

## FAQ

### What do I need to configure?

An Alphorn webhook Endpoint URL as ALPHORN_WEBHOOK_URL, and ALPHORN_API_KEY if the webhook requires a key.

### Which clients are covered?

The docs give setup for Claude Code, Claude Desktop, Cursor and Codex CLI, and say any MCP client works.

### Which channels can it notify?

The README lists Slack, Telegram, Discord, email, SMS and push, depending on what you configure in Alphorn.

### What Node version is needed?

Node.js 20 or later.

### Is Alphorn free?

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

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

Run this command in your terminal: claude mcp add mcp --env ALPHORN_WEBHOOK_URL='<ALPHORN_WEBHOOK_URL>' --env ALPHORN_API_KEY='<ALPHORN_API_KEY>' -- npx -y @alphorn/mcp

### What are the best alternatives to Alphorn?

The closest alternatives to Alphorn 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/alphorn
