Skip to main content
Glama
GitHub Notifications MCP Server

GitHub Notifications MCP Server

by mcollina

GitHub Notifications MCP Server

An MCP (Model Context Protocol) server that provides tools for managing GitHub notifications. This server allows AI assistants like Claude to help you manage your GitHub notifications through natural language commands.

Features

  • List and filter your GitHub notifications

  • Mark notifications as read

  • View notification thread details

  • Subscribe or unsubscribe from notification threads

  • Mark threads as done

  • Manage repository-specific notifications

  • Control repository notification settings (all activity, default, or mute)

Related MCP server: mcp-github-server

Prerequisites

  • Node.js 18 or higher

  • GitHub Personal Access Token (classic) with notifications or repo scope

Installation

  1. Clone this repository

    git clone https://github.com/yourusername/github-notifications-mcp-server.git
    cd github-notifications-mcp-server
  2. Install dependencies

    npm install
  3. Build the project

    npm run build
  4. Create a .env file with your GitHub token

    GITHUB_TOKEN=your_github_personal_access_token_here

Usage

Running the server directly

npm start

Using with Claude Desktop

Add the server to your claude_desktop_config.json file:

{
  "mcpServers": {
    "github-notifications": {
      "command": "node",
      "args": ["/absolute/path/to/github-notifications-mcp-server/build/index.js"],
      "env": {
        "GITHUB_TOKEN": "your_github_personal_access_token_here"
      }
    }
  }
}

Available Tools

Tool Name

Description

list-notifications

List all GitHub notifications for the authenticated user

mark-notifications-read

Mark all notifications as read

get-thread

Get information about a notification thread

mark-thread-read

Mark a specific thread as read

mark-thread-done

Mark a thread as done

get-thread-subscription

Get subscription status for a thread

set-thread-subscription

Subscribe to a thread

delete-thread-subscription

Unsubscribe from a thread

list-repo-notifications

List notifications for a specific repository

mark-repo-notifications-read

Mark notifications for a repository as read

manage-repo-subscription

Manage repository subscriptions: all_activity, default (participating and @mentions), or ignore (mute)

Example Prompts

Here are some example prompts you can use with Claude Desktop once the server is connected:

  • "Can you check my GitHub notifications?"

  • "Show me my unread notifications from the last 24 hours."

  • "Mark all my notifications as read."

  • "Can you tell me about notification thread 12345?"

  • "Unsubscribe me from thread 12345."

  • "What notifications do I have for the octocat/Hello-World repository?"

  • "Mark all notifications from the octocat/Hello-World repository as read."

  • "Watch all activity on the octocat/Hello-World repository."

  • "Set the octocat/Hello-World repository to default settings (participating and @mentions)."

  • "Check my notification settings for the octocat/Hello-World repository."

  • "Mute all notifications from the octocat/Hello-World repository."

Development

URL Handling

This server automatically converts GitHub API URLs to their corresponding web UI URLs. For example:

  • API URL: https://api.github.com/repos/nodejs/node/pulls/57557

  • Converted to: https://github.com/nodejs/node/pull/57557

The conversion handles:

  • Domain conversion from api.github.com/repos to github.com

  • Path correction for pull requests (changing pulls to pull)

  • Preservation of additional path segments

Project Structure

github-notifications-mcp-server/
├── src/                    # Source code
│   ├── tools/              # Tool implementations
│   ├── types/              # Type definitions
│   ├── utils/              # Utility functions
│   ├── index.ts            # Entry point
│   └── server.ts           # Server configuration
├── build/                  # Compiled JavaScript
├── .env                    # Environment variables
├── package.json            # Dependencies
├── tsconfig.json           # TypeScript configuration
└── README.md               # Documentation

Building

npm run build

Testing

Run the automated tests:

npm test

Test URL conversion manually:

npm run test:url

License

MIT

Available Tools

11 tools
delete-thread-subscriptionA

Unsubscribe from a GitHub notification thread

Inputs: thread_id (required).

get-threadC

Get information about a GitHub notification thread

Inputs: thread_id (required).

get-thread-subscriptionA

Get subscription status for a GitHub notification thread

Inputs: thread_id (required).

list-notificationsC

List GitHub notifications for the authenticated user

Inputs: all, participating, since, before, +2 more.

list-repo-notificationsC

List GitHub notifications for a specific repository

Inputs: owner (required), repo (required), all, participating, +4 more.

manage-repo-subscriptionC

Manage repository subscription settings including fine-grained notification preferences

Inputs: owner (required), repo (required), action (required), options.

mark-notifications-readC

Mark GitHub notifications as read

Inputs: last_read_at, read.

mark-repo-notifications-readC

Mark GitHub notifications for a specific repository as read

Inputs: owner (required), repo (required), last_read_at, read.

mark-thread-doneC

Mark a GitHub notification thread as done

Inputs: thread_id (required).

mark-thread-readC

Mark a GitHub notification thread as read

Inputs: thread_id (required).

set-thread-subscriptionC

Subscribe to a GitHub notification thread

Inputs: thread_id (required), ignored.

Tool Schema Changelog

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

Loading tool schema changelog…

    TDQS

    A3.6/5.0

    Scored across 11 tools

    Disambiguation5/5

    Each tool has a clearly distinct purpose targeting specific notification actions like listing, marking, or managing subscriptions. The descriptions precisely differentiate operations by scope (e.g., list-notifications vs. list-repo-notifications) and action type, leaving no ambiguity for agent selection.

    Naming Consistency5/5

    All tools follow a consistent verb_noun pattern with hyphens, such as 'list-notifications' and 'mark-thread-read'. The naming is uniform across the set, making it predictable and easy for agents to parse and understand the intended operations.

    Tool Count5/5

    With 11 tools, the server is well-scoped for GitHub notifications, covering key operations like listing, marking, and managing subscriptions. Each tool serves a specific function without redundancy, making the count appropriate for the domain's complexity and user needs.

    Completeness5/5

    The tool set provides complete coverage for GitHub notification workflows, including CRUD-like operations (list, get, mark, delete) and lifecycle management (subscriptions, read/done status). There are no obvious gaps, ensuring agents can handle all typical notification tasks without dead ends.

    Maintenance

    ActivityInactive
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      B
      quality
      D
      maintenance
      An MCP server that enables Claude and other compatible LLMs to interact with the GitHub API, supporting features like creating issues, retrieving repository information, listing issues, and searching repositories.
      4
      ISC
    • A
      license
      A
      quality
      D
      maintenance
      An MCP server that gives Claude live access to your GitHub workspace — PR reviews, issue triaging, repo search, and weekly digest reports through natural language.
      7
      MIT