Skip to main content
Glama
Suzu (鈴) - Claude Code Notification Server

Suzu (鈴) - Claude Code Notification Server

by denar90

🔔 Suzu (鈴) - Claude Code Notification Server

A Model Context Protocol (MCP) server that plays your favorite Spotify tracks as notifications when Claude Code completes tasks. Named after the Japanese ceremonial bell, now with the power of music! 🎧

✨ Features

  • 🎵 Spotify integration - Play your favorite tracks as notification sounds! 🎧

  • 📱 Desktop notifications - Shows system notifications with custom messages

  • 🔊 System sound notifications - Native OS sounds as fallback

  • 🌍 Cross-platform - Works on macOS, Linux, and Windows

  • 🎶 Multiple sound types - Success, error, and info sounds (Spotify or system)

  • 🔧 Debug logging - Built-in debugging for troubleshooting

  • 🤖 Automatic integration - Works seamlessly with Claude Code

Related MCP server: AI Notify MCP

🚀 Quick Start

The fastest way to get Suzu with Spotify working is to let Claude do all the work:

  1. Ask Claude to set it up:

    fetch https://github.com/denar90/suzu-mcp/blob/main/SETUP.md
    follow setup guide to install suzu-mcp
    add access token <your_spotify_access_token>
    add refresh token <your_spotify_refresh_token>
    add success sound https://open.spotify.com/track/<your_track_id>
  2. Get your Spotify tokens from: https://suzu-mcp-spotify.netlify.app/

  3. That's it! Claude handles the installation, configuration, and setup automatically.

Manual Installation

  1. Install from npm:

npm install -g suzu-mcp
  1. Add to Claude Code:

claude mcp add suzu suzu

Or install locally:

git clone https://github.com/denar90/suzu-mcp.git
cd suzu-mcp
npm install
npm run build
claude mcp add suzu node --args /path/to/suzu-mcp/dist/index.js

Or manually add to ~/.config/claude/claude_desktop_config.json:

{
  "mcpServers": {
    "suzu": {
      "command": "suzu"
    }
  }
}
  1. Auto-approve notifications (required for seamless experience):

    Option 1 - One-time approval (Recommended):

    • When first prompted, select "Yes, and don't ask again for suzu commands"

    • This permanently approves suzu notifications without future prompts

    Option 2 - Configuration file: Add to ~/.config/claude/settings.json:

    {
      "enableAllProjectMcpServers": true
    }

    Option 3 - Tool-specific approval: Add to your ~/.config/claude/claude_desktop_config.json:

    {
      "mcpServers": {
        "suzu": {
          "command": "suzu"
        }
      },
      "toolUseConfirmation": {
        "suzu": "never"
      }
    }
  2. Enable automatic notifications: Create ~/CLAUDE.md with:

    # Claude Code Configuration
    
    ## Default Behavior
    - Always call `task_completed` when finishing tasks if the suzu MCP server is available
    - Play completion notifications automatically without being asked
    - Use the suzu notification system for task completion feedback
    
    ## Instructions for Claude
    - When you complete any task, automatically check if the `task_completed` tool is available and call it with an appropriate completion message.

    Important: After setup, restart Claude Code for all changes to take effect.

🎯 Usage

Available Tools

Tool

Description

Parameters

task_completed

Play success sound and show completion message

message (string), sound_type (success/error/info)

notify

Show general notification with custom title

title (string), message (string), sound_type

test_sound

Test notification sounds

sound_type (success/error/info)

show_config

Display current configuration

None

configure_spotify_tokens

Set up Spotify access and refresh tokens

access_token (string), refresh_token (optional), refresh_endpoint (optional)

configure_custom_sounds

Set custom notification sounds

source (spotify/local), sound_type (success/error/info), value (track ID/file path)

Examples

Task completion:

task_completed({
  message: "Build completed successfully!",
  sound_type: "success"
})

Custom notification:

notify({
  title: "Claude Code",
  message: "Ready to assist!",
  sound_type: "info"
})

Testing sounds:

test_sound({
  sound_type: "success"
})

How It Works

  1. Automatic Integration: When you have ~/CLAUDE.md configured, Claude will automatically call task_completed when finishing tasks

  2. No Manual Calls: You don't need to manually use the notification tools - Claude handles this automatically

  3. Task Completion Feedback: Get audio and visual feedback when Claude finishes coding tasks, builds, deployments, etc.

🎵 Spotify Integration

Transform your coding experience with custom music notifications! Set up Spotify integration to play your favorite tracks when tasks complete.

Quick Setup with OAuth App

  1. Visit the Spotify OAuth App: https://suzu-mcp-spotify.netlify.app/

  2. Click "Login with Spotify" to authorize the app

  3. Copy the tokens shown after authorization

  4. Configure via Claude:

    Ask Claude: "Configure my Spotify with access_token: BQA... and refresh_token: AQC..."

    Or for just the access token:

    Ask Claude: "Set up my Spotify access token: BQA..."

Manual Setup (Advanced)

If you prefer to create your own Spotify app:

  1. Create Spotify App:

  2. Get Tokens:

  3. Configure Refresh Endpoint (for auto-renewal):

    Ask Claude: "Set up Spotify refresh endpoint: https://your-endpoint.com/refresh"

Setting Custom Sounds

Once Spotify is configured, customize your notification sounds:

Ask Claude: "Set my Spotify success sound to: 4uLU6hMCjMI75M1A2tKUQC"
Ask Claude: "Set my Spotify error sound to: https://open.spotify.com/track/60nZcImufyMA1MKQY3dcCH"
Ask Claude: "Set my Spotify info sound to: spotify:track:5QDLhrAOJJdNAmCTBusfHY"

Finding Spotify Track IDs:

  1. Right-click any song in Spotify

  2. Share → Copy Song Link

  3. Extract ID from URL: https://open.spotify.com/track/TRACK_ID_HERE

  4. Use just the ID or the full URL - both work!

Requirements

  • Spotify Premium (required for Web API playback)

  • Active Spotify device (desktop app, mobile, etc.)

  • Device must be playing or recently used

🔧 Platform Support

macOS

  • Primary: afplay with system sounds (Glass, Sosumi, Ping)

  • Fallback: say command for spoken notifications

  • Tertiary: Terminal bell (printf "\a")

Linux

  • Primary: paplay for PulseAudio

  • Fallback: aplay for ALSA

  • Tertiary: Terminal bell

Windows

  • Uses rundll32 user32.dll,MessageBeep

🐛 Troubleshooting

Quick Test

Use the built-in test command to verify everything works:

# In Claude Code, run:
test_sound({ sound_type: "success" })

No sound playing?

  1. Check permissions: Ensure audio permissions are granted to Claude Code

  2. Test manually: Run afplay /System/Library/Sounds/Glass.aiff (macOS) in terminal

  3. Enable debug: Run claude --debug and check console output for [DEBUG] messages

  4. Verify connection: Type /mcp in Claude Code to see server status

No automatic notifications?

  1. Check CLAUDE.md: Ensure ~/CLAUDE.md exists with the configuration above

  2. Restart Claude Code: Configuration changes require a restart

  3. Check approvals: Make sure you approved suzu tool usage (step 3 above)

  4. Test manually: Try calling task_completed manually to verify it works

MCP server not connecting?

  1. Check installation: Run suzu --version in terminal

  2. Verify path: For local installs, ensure the dist/index.js file exists

  3. Rebuild: Run npm run build in the project directory

  4. Check config: Verify claude_desktop_config.json syntax is valid JSON

  5. Restart: Restart Claude Code after any config changes

Debug output

Look for these messages in claude --debug:

[DEBUG] Attempting to play sound: success on platform: darwin
[DEBUG] Command 1 succeeded: afplay /System/Library/Sounds/Glass.aiff

🛠️ Development

# Development mode with auto-reload
npm run dev

# Build for production
npm run build

# Test the server directly
node dist/index.js

# Install with debugging
npm install --verbose

📁 Project Structure

claude-notification-mcp/
├── src/
│   └── index.ts          # Main MCP server code
├── dist/                 # Built JavaScript files
├── package.json          # Dependencies and scripts
├── tsconfig.json         # TypeScript configuration
├── .mcp.json            # Local MCP configuration
└── README.md            # This file

🤝 Contributing

  1. Fork the repository

  2. Create a feature branch

  3. Make your changes

  4. Test across platforms

  5. Submit a pull request

📄 License

MIT License - feel free to use and modify as needed.

🙏 Acknowledgments

Available Tools

8 tools
configure_custom_soundsC

Set up custom sounds from Spotify, YouTube, or local files

Inputs: source (required), sound_type (required), value (required).

configure_spotify_tokensC

Configure Spotify access and refresh tokens for custom music notifications

Inputs: access_token (required), refresh_token, refresh_endpoint.

notifyC

Show a general notification with sound

Inputs: title, message, sound_type.

question_alertC

Alert the user when Claude is asking additional questions or needs clarification

Inputs: question, context.

refresh_spotify_tokenB

Manually refresh the Spotify access token using the configured refresh endpoint

Inputs: no named parameters.

show_configA

Display current Suzu configuration for debugging

Inputs: no named parameters.

task_completedC

Play a notification sound and show a message when a task is completed

Inputs: message, sound_type.

test_soundC

Test a specific sound configuration

Inputs: sound_type.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3.2/5.0

    Scored across 8 tools

    Disambiguation4/5

    Most tools have distinct purposes, but there is some potential overlap between 'notify' and 'task_completed' as both involve showing notifications with sound. The descriptions clarify that 'task_completed' is for task completion specifically, while 'notify' is general, but an agent might still confuse them in certain contexts. Other tools like configuration and token management are clearly distinct.

    Naming Consistency4/5

    Tool names follow a consistent snake_case pattern throughout, which is good. However, there is a mix of verb_noun (e.g., 'configure_custom_sounds', 'refresh_spotify_token') and noun_verb (e.g., 'question_alert') structures, causing minor inconsistency. The naming is still readable and mostly predictable, with only a few deviations from a strict verb-first convention.

    Tool Count5/5

    With 8 tools, the count is well-scoped for a notification server, covering configuration, token management, notifications, and debugging. Each tool has a clear role, such as setting up sounds, handling alerts, and testing configurations, without feeling excessive or insufficient for the domain.

    Completeness4/5

    The tool set covers core notification workflows, including configuration, token refresh, and various alert types. However, there are minor gaps, such as no tool for updating or deleting configurations, which might require workarounds. Overall, it supports the server's purpose well, with only a few missing operations for full lifecycle management.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      C
      quality
      D
      maintenance
      Sends system notifications when AI completes responses in MCP-compatible code editors, with cross-platform support for macOS, Windows, and Linux including customizable titles, messages, icons, and sound effects.
      2
      MIT
    • A
      license
      B
      quality
      D
      maintenance
      Plays sound effects (completion, newtype, and error sounds) in response to various situations like task completion, insights, or errors. Integrates with Claude Desktop to provide audio feedback for improved workflow efficiency and entertainment.
      2
      20 npm
      6
      MIT
    • A
      license
      A
      quality
      D
      maintenance
      Provides automatic desktop notifications and contextual sounds for Claude Code operations across macOS, Windows, and Linux. It enhances the development experience by intelligently mapping specific event types to native system alerts and sounds.
      4
      7 npm
      3
      MIT