Polybar Notification MCP

Polybar Notification MCP

A Model Context Protocol server that allows displaying messages via polybar status bar and sending desktop notifications via notify-send/dunst.

Category
Visit Server

Tools

display_polybar_message

Display a message in polybar status bar. Useful for notifying the user when an operation is complete or when waiting for user input.

show_popup_notification

Show a popup notification using notify-send/dunst. Useful for notifying the user when an operation is complete or when waiting for user input.

README

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+

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured