Alerts
БесплатноНе проверенMCP server to manage three.ws pump.fun alert rules with in-app, webhook and Telegram delivery, plus alert history.
Описание
MCP server to manage three.ws pump.fun alert rules with in-app, webhook and Telegram delivery, plus alert history.
README
@three-ws/alerts-mcp
Run your own pump.fun monitoring from any AI agent — define alert rules, deliver them in-app / by signed webhook / to Telegram, and read the fired-alert history.
A Model Context Protocol server that turns the three.ws pump.fun alerts surface into an agent-drivable control plane over stdio. Define rules on pump.fun events — graduations, market-cap crossings, whale buys, new launches — and let the three.ws cron evaluate them against the live event stream and deliver across in-app, webhook, and Telegram. Read back what actually fired, with per-channel delivery health.
Rules are account-scoped: every call carries your three.ws session, so the server reads and writes only your rules and your alert history. The pumpfun-monitor cron does the watching server-side, so your rules fire across devices with no dashboard open.
Install
npm install @three-ws/alerts-mcp
Or run with npx (no install):
npx @three-ws/alerts-mcp
Quick start
Claude Code, one line:
claude mcp add alerts -e THREE_WS_SESSION=your-__Host-sid-cookie -- npx -y @three-ws/alerts-mcp
Claude Desktop / Cursor (claude_desktop_config.json or mcp.json):
{
"mcpServers": {
"alerts": {
"command": "npx",
"args": ["-y", "@three-ws/alerts-mcp"],
"env": {
"THREE_WS_SESSION": "your-__Host-sid-cookie"
}
}
}
}
Inspect the surface with the MCP Inspector:
THREE_WS_SESSION=… npx -y @modelcontextprotocol/inspector npx @three-ws/alerts-mcp
Authentication
Every tool is account-scoped. Set THREE_WS_SESSION to the value of your __Host-sid cookie from a signed-in three.ws browser session (DevTools → Application → Cookies → __Host-sid). The server sends it the same way your browser does; for writes it first fetches a one-time CSRF token from /api/csrf-token and echoes it, exactly like the site. Treat the session value like a password. No Solana key or signer is involved.
Tools
| Tool | Type | What it does |
|---|---|---|
list_alert_rules |
read-only | List your alert rules with live delivery health — last_fired_at, recent failures, recent per-channel outcomes. |
create_alert_rule |
write (appends) | Define a new rule on a pump.fun event. Not idempotent — each call adds a rule (max 50). |
update_alert_rule |
write (idempotent) | Retune a threshold, pause/resume (enabled), swap delivery channels, or change kind. Only passed fields change. |
delete_alert_rule |
write (destructive) | Permanently remove a rule and its fire/delivery history. Prefer update_alert_rule with enabled:false to pause. |
get_alert_history |
read-only | Read the alerts that actually fired, newest first — each with a summary, originating rule_id, and full payload. |
Rule kinds & targeting
kind |
Target | threshold |
|---|---|---|
graduation |
global, or target_mint / target_agent |
— |
price_above |
target_mint (required) |
USD market cap |
price_below |
target_mint (required) |
USD market cap |
whale_buy |
target_mint (required) |
minimum buy size in SOL |
new_mint |
target_agent (required) |
— |
At least one delivery channel must be on: deliver_in_app (default true), webhook_url (HTTPS — a per-rule webhook_secret is generated for verifying the webhook-signature header), and/or telegram_chat (numeric chat id or @username). cooldown_seconds (5–86400, default 300) throttles repeat fires. label is at most 80 characters with no control characters or line breaks.
Webhook URL screening. Before a rule is sent to three.ws, webhook_url must be a public HTTPS endpoint. The server rejects URLs with embedded credentials, private-network hostnames (localhost, *.local, *.internal, cloud metadata names), IP literals in loopback, private, link-local (including 169.254.169.254), CGNAT, multicast and reserved ranges (IPv4 embedded in IPv6 included), and hostnames whose DNS answer contains such an address. This is a client-side first filter that gives a precise error. Deliveries are made by the three.ws backend, which must enforce the same policy at send time, against the address it actually connects to, to stop DNS rebinding.
Any coin referenced in a rule is runtime input you supply. three.ws promotes only $THREE (
FeMbDoX7R1Psc4GEcvJdsbNbZA3bfztcyDCatJVJpump).
Example
// create_alert_rule — alert when a tracked agent's coin graduates, via webhook + Telegram
> {
"kind": "graduation",
"target_agent": "8a1c…-uuid",
"webhook_url": "https://hooks.example.com/pump",
"telegram_chat": "123456789",
"cooldown_seconds": 600
}
{
"ok": true,
"rule": {
"id": "…", "kind": "graduation", "label_display": "Graduations · tracked agent",
"target_agent": "8a1c…-uuid", "deliver_in_app": true,
"webhook_url": "https://hooks.example.com/pump",
"webhook_secret": "whsec_…", "telegram_chat": "123456789",
"cooldown_seconds": 600, "enabled": true,
"last_fired_at": null, "recent_failures": 0, "recent_deliveries": []
}
}
// get_alert_history — what fired, newest first
> { "limit": 2 }
{
"ok": true, "count": 2, "unread_count": 1,
"alerts": [
{ "id": 1841, "fired_at": "2026-06-24T…Z", "read": false,
"summary": "Whale bought 12.50 SOL ($2,310) of $THREE",
"rule_id": "…", "kind": "whale_buy", "mint": "FeMb…pump", "symbol": "THREE",
"event": { "amount_sol": 12.5, "amount_usd": 2310, "buyer": "…", "tx": "…" } }
]
}
Requirements
- Node.js >= 20.
- A signed-in three.ws session (
THREE_WS_SESSION). - Network access to
https://three.ws(or your ownTHREE_WS_BASE).
Environment variables
| Variable | Required | Default | Notes |
|---|---|---|---|
THREE_WS_SESSION |
yes | — | Your __Host-sid cookie value. Account credential — secret. |
THREE_WS_BASE |
no | https://three.ws |
Override only for self-hosting / preview deployments. Must be https (plain http only for localhost / 127.0.0.1 / [::1]), since the session cookie is sent to it. |
THREE_WS_TIMEOUT_MS |
no | 20000 |
Per-request timeout (ms), covering the whole response body. |
Reads (list_alert_rules, get_alert_history and the CSRF-token fetch) are retried up to 3 attempts with exponential backoff on network errors, timeouts, 429 and 502/503/504, honouring Retry-After. Writes are never retried, because create_alert_rule is not idempotent and CSRF tokens are single-use. If a write times out, call list_alert_rules before trying again.
Errors
A failed call returns isError: true with { ok: false, error, message, status? }. error is one of no_session, bad_session (the session value contains characters a cookie cannot hold), csrf_unavailable, invalid_webhook_url, timeout, network_error, bad_response (a 2xx that was not JSON) or upstream_error (the API's own status and message).
Programmatic use
The package entry point exports TOOLS (every tool definition: name, title,
description, inputSchema, annotations, handler) and buildServer(), which returns a
fully-registered McpServer with no transport attached. Importing is side-effect free and needs
no session, so you can mount the alert tools inside a host of your own or inspect the surface
offline; the session is only required when a handler actually runs.
// run with: THREE_WS_SESSION=<your __Host-sid value> node this-file.mjs
import { TOOLS, buildServer } from '@three-ws/alerts-mcp';
for (const tool of TOOLS) {
const kind = tool.annotations.readOnlyHint ? 'read ' : 'write';
console.log(`${kind} ${tool.name}`);
}
// A tool handler is a plain async function against the live API. Calling it
// directly skips the MCP server's zod validation, so parse your arguments with
// the tool's inputSchema first (the webhook URL screen runs either way).
const list = TOOLS.find((t) => t.name === 'list_alert_rules');
console.log(await list.handler({}));
// Or hand the whole registered server to your own MCP transport.
buildServer();
Links
- Homepage: https://three.ws
- Changelog: https://three.ws/changelog
- Issues: https://github.com/nirholas/three.ws/issues
- License: Apache-2.0, see LICENSE
Part of the three.ws SDK suite — 3D AI agents, on-chain identity, and agent payments.
Website · Changelog · GitHub
Support the project
If alerts-mcp saves you time, star it on GitHub. Stars are how other developers and AI agents find the repositories worth trusting, and they cost you one click.
Know someone who would use it? Post on X · Share on Bluesky · Share on LinkedIn · Submit to Hacker News · Share on Reddit
Built for AI agents too
Coding agents and LLM tooling can read this repo directly: AGENTS.md, llms.txt, llms-full.txt. Point an agent at https://github.com/nirholas/alerts-mcp and it has the context it needs.
More from the same author
- All repositories by nirholas: the full catalog, grouped by topic
- three.ws: the platform for 3D AI agents with Solana wallets, a skill marketplace and x402 payments
- Questions or ideas: open an issue or start a discussion
Contributors
Star history
Part of three.ws
three.ws is a platform for 3D AI agents with Solana wallets: avatars, a skill marketplace, x402 payments and more than seventy MCP servers. @three-ws/alerts-mcp is one package from it.
- Documentation site: https://nirholas.github.io/alerts-mcp/
- npm: https://www.npmjs.com/package/@three-ws/alerts-mcp
- Canonical source: https://github.com/nirholas/three.ws (this repository is a generated mirror of
packages/alerts-mcp) - Agent-readable summary: llms.txt and AGENTS.md
- Issues and ideas: https://github.com/nirholas/alerts-mcp/issues
Установка Alerts
У этого сервера нет опубликованного пакета — он собирается из исходников. Открой репозиторий и следуй инструкции в README.
▸ github.com/nirholas/alerts-mcpFAQ
Alerts MCP бесплатный?
Да, Alerts MCP бесплатный — установка в пару кликов через Unyly без оплаты.
Нужен ли API-ключ для Alerts?
Да, требуются переменные окружения: THREE_WS_SESSION. Unyly подставит их в конфиг при установке.
Alerts — hosted или self-hosted?
Self-hosted: сервер запускается локально на твоей машине командой из раздела установки.
Как установить Alerts в Claude Desktop, Claude Code или Cursor?
Открой Alerts на unyly.org, выбери вкладку своего клиента (Claude Desktop, Claude Code, Cursor) и нажми Install — конфиг сгенерируется автоматически, без правки JSON.
Похожие MCP
Gmail
Read, send and search emails from Claude
автор: GoogleSlack
Send, search and summarize Slack messages
автор: SlackRunbear
No-code MCP client for team chat platforms, such as Slack, Microsoft Teams, and Discord.
Discord Server
A community discord server dedicated to MCP by [Frank Fiegel](https://github.com/punkpeye)
Klavis AI
Open Source MCP Infra. Hosted MCP servers and MCP clients on Slack and Discord.
Work90210/APIFold
Turn any REST API into a hosted MCP server, with ready-made public servers for GitHub, Stripe, Slack, OpenAI, Notion and more.
автор: Work90210arikusi/deepseek-mcp-server
DeepSeek AI chat and reasoning with multi-turn sessions, function calling, thinking mode and cost tracking.
автор: arikusihashgraph-online/hashnet-mcp-js
Discover, register and chat with AI agents on the Hashgraph network via the Registry Broker.
автор: hashgraph-onlineprofullstack/mcp-server
Developer utilities: SEO optimization, document conversion, domain lookup, email validation, QR codes, weather data, social media posting and security scanning.
автор: profullstackWayStation-ai/mcp
Connect MCP hosts to apps such as Notion, Slack, Monday and Airtable.
автор: waystation-aiCompare Alerts with
Не уверен что выбрать?
Найди свой стек за 60 секунд
Автор?
Embed-бейдж для README
Похожее
Все в категории communication
