Skip to main content
Glama

Polybar Notification MCP

by khughitt

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

npm install npm run build

Usage

Available Tools

display_polybar_message

Display a message in polybar status bar.

Parameters:

  • message (string): The message to display
  • duration (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 title
  • message (string): Notification message
  • urgency (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.:

[module/mcp-notification] type = custom/script exec = cat /tmp/polybar-mcp-message 2>/dev/null | jq -r '.message // ""' 2>/dev/null || echo "" interval = 1 format = <label> format-prefix = "🤖 " format-underline = ${xrdb:color7} label = %output%

Cursor Integration

To configure Cursor to use this MCP server:

  1. Open Cursor Settings: Press Ctrl+, (or Cmd+, on Mac) to open settings
  2. Navigate to MCP Settings: Search for "MCP" in the settings or look for "Model Context Protocol" settings
  3. Add the MCP Server Configuration: Add the following to your MCP settings configuration:
{ "mcpServers": { "polybar-notification": { "command": "node", "args": ["~/cursor-polybar-mcp/bin/polybar-mcp"], "env": {} } } }

Next, in Cursor Settings -> Rules, add a User rule to tell cursor when to use the MCP, e.g.:

Always, after completing any user request (success or failure), call the "display_polybar_message" tool with a summary of the last action or result, before waiting for further user input.

Or:

Always, when you reach a point where you need user input, use the `show_popup_notification` to send a concise notification to let them know.
Troubleshooting Cursor Integration:
  • Restart Cursor after adding the MCP configuration
  • Check the Developer Console (HelpToggle 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

npm run dev # Watch mode npm run build # Build npm run lint # Lint code npm run format # Format code

Requirements

  • Linux system
  • polybar (optional, for status bar integration)
  • notify-send or dunstify (for popup notifications)
  • Node.js 18+
Install Server
A
security – no known vulnerabilities
F
license - not found
A
quality - confirmed to work

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.

  1. Installation
    1. Usage
      1. Available Tools
      2. Polybar Setup
      3. Cursor Integration
    2. Development
      1. Requirements

        Related MCP Servers

        • A
          security
          F
          license
          A
          quality
          A Model Context Protocol server that provides greeting tools, resources, and prompts, demonstrating client-server interaction using TypeScript.
          Last updated -
          1
          TypeScript
        • A
          security
          A
          license
          A
          quality
          A Model Context Protocol server that provides system notification capabilities across various platforms (macOS, Windows, Linux) using node-notifier.
          Last updated -
          6
          212
          JavaScript
          MIT License
          • Linux
          • Apple
        • A
          security
          A
          license
          A
          quality
          A Model Context Protocol server that connects to AppSignal, allowing users to fetch, list, and analyze incident information from their AppSignal monitoring.
          Last updated -
          3
          1
          2
          TypeScript
          MIT License
        • A
          security
          F
          license
          A
          quality
          A 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 -
          2
          TypeScript

        View all related MCP servers

        MCP directory API

        We provide all the information about MCP servers via our MCP API.

        curl -X GET 'https://glama.ai/api/mcp/v1/servers/khughitt/polybar-dunst-mcp'

        If you have feedback or need assistance with the MCP directory API, please join our Discord server