Polybar Notification MCP
An MCP (Model Context Protocol) server for displaying messages via polybar and notify-send / dunst.
Based on neotanx/neomcps - sound notification mcp.
Installation
Usage
Available Tools
display_polybar_message
Display a message in polybar status bar.
Parameters:
message
(string): The message to displayduration
(number, optional): Duration in seconds (default: 5)color
(string, optional): Text color (default: #ffffff)background
(string, optional): Background color (default: #333333)
show_popup_notification
Show a desktop popup notification.
Parameters:
title
(string): Notification titlemessage
(string): Notification messageurgency
(string, optional): "low", "normal", or "critical" (default: normal)timeout
(number, optional): Timeout in milliseconds (default: 5000)icon
(string, optional): Icon name or path
Polybar Setup
To integrate with polybar, add this module to your polybar config, e.g.:
Cursor Integration
To configure Cursor to use this MCP server:
- Open Cursor Settings: Press
Ctrl+,
(orCmd+,
on Mac) to open settings - Navigate to MCP Settings: Search for "MCP" in the settings or look for "Model Context Protocol" settings
- Add the MCP Server Configuration: Add the following to your MCP settings configuration:
Next, in Cursor Settings
-> Rules
, add a User rule to tell cursor when to use the MCP, e.g.:
Or:
Troubleshooting Cursor Integration:
- Restart Cursor after adding the MCP configuration
- Check the Developer Console (
Help
→Toggle Developer Tools
) for any MCP connection errors - Verify the path to the
bin/polybar-mcp
file is correct - Ensure the project is built by running
npm run build
before configuring Cursor - Test the MCP server manually by running:
node bin/polybar-mcp
to ensure it starts without errors
The server supports path expansion for ~/
and $HOME/
paths, making configuration more flexible across different environments.
Development
Requirements
- Linux system
- polybar (optional, for status bar integration)
- notify-send or dunstify (for popup notifications)
- Node.js 18+
local-only server
The server can only run on the client's local machine because it depends on local resources.
A Model Context Protocol server that allows displaying messages via polybar status bar and sending desktop notifications via notify-send/dunst.
Related MCP Servers
- AsecurityFlicenseAqualityA Model Context Protocol server that provides greeting tools, resources, and prompts, demonstrating client-server interaction using TypeScript.Last updated -1TypeScript
- AsecurityAlicenseAqualityA Model Context Protocol server that provides system notification capabilities across various platforms (macOS, Windows, Linux) using node-notifier.Last updated -6212JavaScriptMIT License
- AsecurityAlicenseAqualityA Model Context Protocol server that connects to AppSignal, allowing users to fetch, list, and analyze incident information from their AppSignal monitoring.Last updated -312TypeScriptMIT License
- AsecurityFlicenseAqualityA Model Context Protocol server that provides tools for fetching and posting HTTP data, with built-in prompts for URL summarization and API analysis.Last updated -2TypeScript