loading…
Search for a command to run...
loading…
A Model Context Protocol (MCP) server for sending iOS push notifications via Bark.
A Model Context Protocol (MCP) server for sending iOS push notifications via Bark.
A Model Context Protocol (MCP) server for sending iOS push notifications via Bark.
This MCP server provides tools for AI assistants to send push notifications to iOS devices through Bark. It supports all Bark API features including:
active (default)timeSensitive - Displayed during focus modepassive - Silent notificationcritical - Overrides silent/do not disturb modesnpx @metrovoc/bark-mcp-server
npm install -g @metrovoc/bark-mcp-server
bark-mcp-server
npm install @metrovoc/bark-mcp-server
npx @metrovoc/bark-mcp-server
For easier usage, set these environment variables:
BARK_KEY: Your Bark device key (required for automatic usage)BARK_SERVER_URL: Bark server URL (optional, defaults to https://api.day.app)Recommended (with environment variables):
claude mcp add bark -e BARK_KEY=your-device-key -- npx -y @metrovoc/bark-mcp-server
Manual configuration:
{
"bark": {
"command": "npx",
"args": ["-y", "@metrovoc/bark-mcp-server"],
"env": {
"BARK_KEY": "your-device-key",
"BARK_SERVER_URL": "https://api.day.app"
}
}
}
For detailed Claude Code setup instructions, see CLAUDE.md.
Add the server to your claude_desktop_config.json:
{
"mcpServers": {
"bark": {
"command": "npx",
"args": ["-y", "@metrovoc/bark-mcp-server"],
"env": {
"BARK_KEY": "your-device-key",
"BARK_SERVER_URL": "https://api.day.app"
}
}
}
}
Global Installation:
claude mcp add bark -e BARK_KEY=your-device-key -- bark-mcp-server
Direct Node.js:
claude mcp add bark -e BARK_KEY=your-device-key -- node /path/to/@metrovoc/bark-mcp-server/build/index.js
For testing and debugging:
npx @modelcontextprotocol/inspector npx @metrovoc/bark-mcp-server
With environment variables:
BARK_KEY=your-device-key npx @modelcontextprotocol/inspector npx @metrovoc/bark-mcp-server
This MCP server is specifically designed to enable efficient human-AI collaboration. AI assistants like Claude Code can use these tools to:
The intelligent tool descriptions guide AI to choose appropriate notification priorities and timing, enabling you to focus on other work while AI handles routine tasks.
Send a single push notification to an iOS device. AI assistants should use this to notify users when tasks complete, errors occur, or input is needed.
Parameters:
body (required) - Notification content/messageserver_url (optional) - Bark server URL (defaults to BARK_SERVER_URL env var or https://api.day.app)device_key (optional) - Device key (defaults to BARK_KEY env var)title (optional) - Notification titlesubtitle (optional) - Notification subtitleurl (optional) - URL to open when notification is tappedgroup (optional) - Group name for organizing notificationsicon (optional) - Custom icon URL (iOS 15+)sound (optional) - Custom notification sound namecall (optional) - Play sound repeatedly for 30 seconds (use for critical issues)level (optional) - Priority level:critical: Urgent issues requiring immediate attention (errors, failures)timeSensitive: Important updates during focus mode (task completion, testing needed)active: General notifications (progress updates)passive: Low-priority background infobadge (optional) - Badge number on app iconciphertext (optional) - Encrypted message contentAI Usage Examples:
// Critical error requiring immediate attention
{
"body": "❌ Build failed with 5 errors. Your immediate attention required.",
"title": "Critical: Build Failure",
"level": "critical",
"call": true
}
// Task completion notification
{
"body": "✅ User authentication system completed. Ready for testing.",
"title": "Task Complete",
"level": "timeSensitive"
}
// Progress update
{
"body": "📊 Database migration completed successfully (3/5 steps done).",
"title": "Progress Update",
"level": "active"
}
Send multiple notifications in a single batch operation. Use for notifying multiple team members or sending different priority updates.
Parameters:
notifications (required) - Array of notification objects (same format as single notification)server_url (optional) - Bark server URL (defaults to BARK_SERVER_URL env var or https://api.day.app)Check if a Bark server is running and healthy. AI should call this proactively to ensure reliable user communication.
Parameters:
server_url (optional) - Bark server URL to check (defaults to BARK_SERVER_URL env var or https://api.day.app)device_key parameterYou can use:
https://api.day.app# Watch mode for development
npm run dev
# Build
npm run build
# Start the server
npm start
MIT License
Выполни в терминале:
claude mcp add bark-mcp-server -- npx Безопасность
Низкий рискАвтоматическая эвристика по публичным данным — не гарантия безопасности.