@nextmsg/mcp
OfficialThis server provides a single MCP tool, notify_human, to send push notifications to a user's phone through NextMsg.
Send a notification with a required
messageof 1–640 characters, supporting**bold**,*italic*,~~strikethrough~~, and`code`; links appear as plain text.Group notifications with an optional
channelsuch asci,deploy,infra, orml; default isgeneral.Connect an unpaired computer/agent once by passing an 8-character
pair_codefrom NextMsg Settings → Agents → Connect agent.Use it for task/build/test/deployment/workflow completion, failure, or input-needed alerts, and when the user asks to be notified.
Do not use it for progress updates, replies to actively chatting users, or messages containing secrets/tokens/personal data.
Sends one-way push alerts to the user's Android device through the NextMsg mobile app, which receives notifications for agent, cron, or CI outcomes.
Delivers push notifications to the NextMsg app installed on the user's iPhone from the App Store, letting agents alert the user when tasks finish, fail, or need input.
Delivers push notifications to the NextMsg app installed from Google Play on Android phones, so autonomous workflows can notify the user of completed or failed tasks.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@@nextmsg/mcp notify me when the build finishes, use the ci channel"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
@nextmsg/mcp
Official Model Context Protocol (MCP) server and CLI notifier for NextMsg.
npm: npmjs.com/package/@nextmsg/mcp, run it with
npx -y @nextmsg/mcpSource: github.com/nextmsg-app/mcp
Guides: nextmsg.app/guides (Claude Code, Cursor, Codex, Antigravity, GitHub Actions, AWS and more)
NextMsg is a one-way push notification inbox for developers. AI agents, autonomous scripts, and long-running workflows use it to notify your phone when tasks finish, fail, or need attention.
Use it to answer questions like:
How can Claude Code, Cursor or another AI agent notify me when a task is done? → Claude Code guide, Cursor, Codex, Antigravity and Gemini
Which MCP server can send a notification to my phone? → this one:
npx -y @nextmsg/mcp, setup belowHow do I get a phone notification when a GitHub Action fails? → GitHub Actions guide
How do I know when a cron job or backup finishes? → cron jobs guide
How do I send server alerts to my phone without Telegram or Slack? → server alerts guide
Without MCP, any program can send with one HTTP request: see the Send API.
Connect your phone
Install the NextMsg app:
iPhone: App Store
Android: Google Play
Open it. Your inbox is created on the spot: no account, no email.
Connect your agent with a code, or use your send key (below).
With a code (no key to copy)
Each computer or agent gets its own key, which you can rename or revoke on its own in the app:
In the app: Settings → Agents → Connect agent. It shows a code like
K73M-QX9Pfor 5 minutes.Give the code to your agent in the chat: with the MCP server set up (no
NEXTMSG_KEYneeded), the agent asks for it the first time. Or runnpx -y @nextmsg/mcp --pair K73M-QX9Pin a terminal.
The key is saved in ~/.config/nextmsg/key ($XDG_CONFIG_HOME/nextmsg/key if set, %APPDATA%\nextmsg\key on Windows), readable only by you. Never share the code: whoever uses it within 5 minutes can send you notifications.
In Docker, the saved key lives in the container and is gone when it's removed: mount a volume at /home/node/.config/nextmsg, or pass NEXTMSG_KEY.
With your send key
In the app, go to Settings → Send key and copy it (nextmsg_live_…). Put it in the NEXTMSG_KEY environment variable, never in code or repos. When set, NEXTMSG_KEY is always used instead of a saved key. If it leaks, rotate it in the app (Settings). Help: nextmsg.app/support.
Related MCP server: ntfy-mcp
Quickstart: Use with AI Tools
1. Claude Desktop
Add to your claude_desktop_config.json:
macOS:
~/Library/Application Support/Claude/claude_desktop_config.jsonWindows:
%APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"nextmsg": {
"command": "npx",
"args": ["-y", "@nextmsg/mcp"]
}
}
}The first time, the agent asks you for a code from Settings → Agents → Connect agent. To use your send key instead, add "env": { "NEXTMSG_KEY": "nextmsg_live_YOUR_KEY_HERE" } next to args.
2. Cursor
Go to Settings → Features → MCP Servers → Add New MCP Server:
Name:
nextmsgType:
commandCommand:
npx -y @nextmsg/mcpNo key needed: the agent asks for a code from Settings → Agents → Connect agent the first time. Or set the environment variable
NEXTMSG_KEYto your send key.
3. Claude Code Hook
You can also set up a hook in ~/.claude/settings.json so Claude Code pings your phone whenever it finishes a turn. Connect once with npx -y @nextmsg/mcp --pair YOUR-CODE (the hook then uses the saved key), or set NEXTMSG_KEY in your shell profile (or in the env block of settings.json):
{
"hooks": {
"Stop": [
{
"hooks": [
{
"type": "command",
"command": "npx -y @nextmsg/mcp 'Claude Code finished task' --channel claude-code"
}
]
}
]
}
}4. Direct CLI Usage
Send messages directly from your terminal or CI pipelines:
# Connect once with a code from the app (Settings → Agents → Connect agent)
npx @nextmsg/mcp --pair K73M-QX9P
# ...or set the send key (CI, Docker)
export NEXTMSG_KEY="nextmsg_live_..."
# Send alert
npx @nextmsg/mcp "Model training complete: loss 0.12" --channel ml
# A message that starts with "-"
npx @nextmsg/mcp -- "-1 tests failing"--status shows which key is used; --disconnect deletes the saved key (revoke it in the app too, under Settings → Agents). --key works too, but prefer --pair or NEXTMSG_KEY: a key on the command line ends up in shell history. If a key leaks, rotate it in the app (Settings).
MCP Tools Provided
notify_human
Sends a push notification to your phone. The agent uses it when a task finishes, fails or needs your input, and whenever you ask to be notified. Its description tells the agent to:
send one notification per outcome, not progress updates
answer in the conversation instead when you're actively chatting
never include secrets, tokens or personal data (the text shows on the lock screen)
report a failed send in the conversation instead of retrying
Parameters:
message(string, required): Alert text (1–640 characters). Supports markdown (**bold**,*italic*,~~strike~~,`code`). Links are inert text.channel(string, optional, default: "general"): Channel category tag (1–32 lowercase charsa-z0-9_-). E.g.ci,deploy,ml,infra.pair_code(string, optional): Only when not connected yet: the code from Settings → Agents → Connect agent. The server claims it, saves this computer's key and sends the message in the same call. Ignored once a key works.
The key is read only from NEXTMSG_KEY or the saved key file, never from tool arguments, so it never passes through the model's context or transcripts. It is sent only to the NextMsg API, in the Authorization header, and redirects are refused, so it can't be forwarded anywhere else. See SECURITY.md for how keys are handled and how to report a problem. The tool result never contains it. The agent is named after the MCP client and the OS (like "Claude Code on macOS"), never the computer's hostname.
License
Available Tools
1 toolnotify_humanA
Send a push notification to the user's phone via NextMsg. Use it when an autonomous task, build, test run, deployment or long-running workflow finishes, fails, or needs the user's input, and whenever the user asks to be notified. Send one notification per outcome, not progress updates. Don't use it to answer a user who is actively chatting with you. Never include secrets, tokens or personal data: the text appears on the lock screen. Keep it short and specific: what happened, where, and what (if anything) the user should do. If sending fails, tell the user in the conversation instead of retrying. If the result says NextMsg isn't connected, ask the user for the code from NextMsg → Settings → Agents → Connect agent and call again with pair_code.
Inputs: message (required), channel, pair_code.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 1 tool
Only one tool exists, so there is no possibility of selection confusion. Its purpose (send a push notification to the user's phone) is unambiguous and clearly scoped.
notify_human follows a clear verb_noun pattern and reads naturally. With a single tool there are no competing conventions to clash with.
The server's purpose is narrow — pushing a notification — and a single tool covers it without padding. It is thin (no status, history, or pairing-management tools), but not mismatched to scope.
Core send flow is fully covered, including failure handling and pairing recovery guidance embedded in the description. Minor gaps remain: no way to check delivery status, verify NextMsg connectivity, or list/manage past notifications other than through the send result.
Maintenance
Related MCP Connectors
Send yourself a push notification from an AI assistant. No account, one environment variable.
Let your AI agent notify you by email, Slack, Discord, or webhook. One tool: send_notification.
Reach your own phone from an AI agent: notifications, approval questions, reminders, ring, files.
Push notifications for AI agents - send instant iPhone notifications from any MCP client.
Related MCP Servers
- AlicenseBqualityDmaintenanceEnables AI agents to send push notifications to your phone through ntfy, with built-in security controls to prevent data exfiltration. It exposes a single tool notify_user for notifying when tasks complete or need attention.1MIT
- AlicenseNot gradedqualityDmaintenanceEnables sending push notifications via ntfy with a single tool, allowing Claude agents to send notifications directly without shell access.MIT
- FlicenseAqualityDmaintenanceEnables AI to send push notifications to your phone via a configurable gateway. It is a thin wrapper that posts to an Apprise push gateway.1-
- AlicenseAqualityBmaintenanceEnables AI agents to send push alerts to your phone via Blipr, useful for notifying when tasks complete, builds break, or approvals are needed.5452 npmMIT