MCPal

MCPal

mcpal•bymjkid221

A lightweight MCP server that sends native desktop notifications supporting action buttons, text replies, and client-aware icons.

License: MIT License•Runtime: Awaiting documentation review•Category: productivity work

WHAT IT DOES

  • •Sends native desktop notifications with an optional title, body message, action buttons, and a text reply input.
  • •Returns structured results including status, the user's reply, clicked action, and whether inputs were sanitized.
  • •Detects the calling MCP client and displays a matching icon in notifications.
  • •Sanitizes inputs before delivery by normalizing line endings, removing unsafe control characters, and truncating fields to limits.

BEST FOR

  • •Alerting a user when an assistant finishes a task such as reading files, investigating, or coding.
  • •Requesting a quick decision through notification action buttons, such as deploy or cancel.
  • •Asking a question and receiving a free-form answer directly from the notification.

ABOUT MCPAL

MCPal is cataloged as an MCP server attributed to mjkid221. A lightweight MCP server that sends native desktop notifications supporting action buttons, text replies, and client-aware icons. It is categorized under productivity work. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.

HOW TO INSTALL

Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.

LICENSE

Catalog license label: MIT License. Check the source repository's current license and terms before using, modifying or distributing this software.

能力检查器

能力定义尚未审核。未核验的采集内容不会作为可信接口展示。

Tools (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Resources (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Prompts (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

NEWSLETTER - COMING LATER

Newsletter subscriptions are not open yet

Email delivery is not connected. This page does not collect email addresses or create subscriptions.

Browse the registry for current listings instead.

Community Reviews

Coming later

Reviews for MCPal are not available yet

Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.

FREQUENTLY ASKED QUESTIONS

Which MCP clients does MCPal work with?

MCPal works with any MCP-compatible client, including Cursor and VS Code with MCP extensions.

How does MCPal choose which icon to show?

It uses the MCP protocol's client identification, where each client sends its name during initialization, to pick the appropriate icon.

上游原版 README

在 GitHub 查看同一版本原文

README.md · b408e80139c5 · 采集于 2026-11-13 10:59:04 UTC

保留上游原文,不做 AI 改写。为安全起见过滤脚本、表单和不安全链接。

当前显示最后一次成功采集的文档快照,请以来源页面为准。

MCPal

MCPal

Lightweight MCP server for native desktop notifications with action buttons, text replies, and LLM-aware icons.
Compatible with any MCP client.

MCPal Notification

Usage

Add to your MCP Config manually:

// JSON
{
  "mcpServers": {
    "mcpal": {
      "command": "npx",
      "args": ["mcpal@latest"]
    }
  }
}

Or TOML (Codex):

// TOML
[mcp_servers.mcpal]
command = "npx"
args = ["-y", "mcpal@latest"]

Codex CLI

Add MCPal directly via the CLI:

codex mcp add mcpal -- npx -y mcpal@latest

Claude Code

Add MCPal directly via the CLI:

# Project scope (current project only)
claude mcp add mcpal -- npx -y mcpal@latest

# User scope (available in all projects)
claude mcp add mcpal --scope user -- npx -y mcpal@latest

Configuring Proactive Notifications

MCPal includes built-in MCP instructions that tell clients how to use notifications. To configure when your assistant should proactively notify you, add this to your client instruction file. This should either be AGENTS.md or CLAUDE.md based on your model:

## Post Task Completion Hook

ALWAYS use MCPal MCP tool (if available) to notify me when you finish any tasks (this includes reading files, investigating, coding). You should use this tool before you terminate conversations. Refer to tool instructions precisely to craft your response.

Customize this based on your preferences - some users want frequent updates, others only want notifications for important decisions.

Other MCP Clients

MCPal works with any MCP-compatible client (Cursor, VS Code with MCP extensions, etc.). The setup varies by client - refer to your client's documentation for adding MCP servers.

Tool: send_notification

Send native notifications with optional features.

Parameters

ParameterTypeRequiredDescription
messagestringYesThe notification body text
titlestringNoThe notification title (default: "MCPal")
actionsstring[]NoAction buttons (e.g., ["Yes", "No", "Maybe"])
dropdownLabelstringNoLabel for actions dropdown (required for multiple actions)
replybooleanNoEnable text reply input

Examples

Simple notification:

{
  "message": "Build complete!",
  "title": "CI/CD"
}

With actions:

{
  "message": "Deploy to production?",
  "title": "Deployment",
  "actions": ["Deploy", "Cancel"],
  "dropdownLabel": "Choose"
}

With reply:

{
  "message": "What should I name this file?",
  "title": "Question",
  "reply": true
}

You can reply directly from the notification without switching apps:

Reply to MCPal directly from notification

Tool Result Contract

send_notification now returns a dual contract:

  • Canonical machine output via structuredContent (recommended for parsing)
  • Backward-compatible text output in content[0].text

Structured fields:

  • status: "sent" or "error"
  • title?: Notification title
  • message?: Message actually sent after sanitization
  • response?: Notification response ("timeout", clicked action, etc.)
  • activationType?: Activation source ("replied", "actionClicked", etc.)
  • reply?: User free-form reply
  • error?: Error message when status is "error"
  • sanitized?: true when MCPal had to sanitize or truncate inputs

Legacy text is still line-based, but each value is JSON-encoded on a single line for parser safety, for example:

status: "sent"
title: "MCPal"
message: "Line 1\nLine 2"
response: "timeout"

Input Sanitization

Before delivery, MCPal applies best-effort sanitization to reduce notifier/parser failures:

  • Normalize line endings: \r\n / \r -> \n
  • Remove unsafe control chars (keeps \n and \t)
  • Truncate limits:
    • title: 256 chars
    • message: 4000 chars
    • actions: max 3 items, each 64 chars
    • dropdownLabel: 64 chars

LLM-Aware Icons

MCPal detects which MCP client is calling the tool and displays the appropriate icon in notifications.

ClientIcon
Claude Desktop / Claude Code / OpusClaude logo
Codex / OpenAI / ChatGPTOpenAI logo
CursorCursor logo
VS CodeVS Code logo
UnknownNo icon

This works via the MCP protocol's client identification - each client sends its name during initialization.

Adding New Client Icons

To add support for a new LLM client, add a PNG to src/assets/clients/ and update the mapping in src/notify.config.ts.

Icon Specifications:

PropertyRequirement
FormatPNG with transparency (RGBA)
Dimensions128×128 pixels
File size<10KB (use pngquant for compression)
# Optimize a new icon
convert input.png -resize 128x128 -background none -gravity center -extent 128x128 temp.png
pngquant --quality=65-80 --output src/assets/clients/newclient.png temp.png
rm temp.png

Custom App Icon

The package includes a custom notification icon that replaces the default Terminal icon on desktop. This is automatically configured during installation via the postinstall script.

Notification Permissions

After the first notification, your system may prompt you to allow notifications from "MCPal". You can manage this in:

System Settings > Notifications > MCPal

Development

# Install dependencies
pnpm install

# Build (required after clone - sets up desktop notification app)
pnpm run build

# Type check
pnpm run typecheck

# Lint
pnpm run lint:fix

# Format
pnpm run format:fix

MCP Inspector

Test the MCP server interactively using the official inspector:

pnpx @modelcontextprotocol/inspector node dist/index.js

This opens a web UI where you can:

  • View available tools and their schemas
  • Send test notifications with different parameters
  • See raw MCP protocol messages

Local Dev Troubleshooting

If you run a local build directly from dist/index.js and notifications are not working, make sure the entrypoint is executable:

chmod +x dist/index.js

Testing Notifications

Test the notification system directly without running the MCP server:

# Simple notification (default)
pnpm run test:notification

# With action buttons
pnpm run test:notification actions

# With reply input
pnpm run test:notification reply

# Run all tests
pnpm run test:notification all

License

Code: MIT License

MCPal Icon & Branding: © 2025 All Rights Reserved. The MCPal logo and icon designs may not be used without permission.

Install configuration

Are you the maintainer?

Claim this server with your GitHub account to request manual ownership verification.

README Embed Badge
Markdown

Link to the catalog listing for MCPal from your README. This badge does not certify ownership, compatibility or security.

[![MCP catalog listing](https://img.shields.io/badge/MCP-awesome--mcp-orange?style=flat-square)](https://awesome-mcp.com/servers/mcpal)

REPOSITORY STATS

GitHub StarsUnavailable
ForksUnavailable

Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.

下载与拉取统计

来源、范围和时段分别列出;不相加,不代表安装人数、活跃用户或安全审核。

尚无已审核的包 / 镜像标识,暂不展示下载统计。

Related productivity work MCP Servers

Alternative and complementary servers in the same category

View all in productivity work →
Tuqui hosted MCP server for Odoo
tuqui-odoo-mcp-for-claude-chatgpt•tuqui-ai

Tuqui is a hosted MCP server that connects Odoo with Claude and ChatGPT so users can ask about sales, stock, customers and overdue invoices in plain language.

Repository stats unavailable
Productivity & Ops