Skip to main content
Glama
GitHub Notifications MCP Server

GitHub Notifications MCP Server

by mcollina

Servidor MCP de notificaciones de GitHub

Un servidor MCP (Protocolo de Contexto de Modelo) que proporciona herramientas para gestionar las notificaciones de GitHub. Este servidor permite que asistentes de IA como Claude te ayuden a gestionar tus notificaciones de GitHub mediante comandos de lenguaje natural.

Características

  • Enumera y filtra tus notificaciones de GitHub

  • Marcar notificaciones como leídas

  • Ver detalles del hilo de notificaciones

  • Suscribirse o cancelar la suscripción a los hilos de notificaciones

  • Marcar hilos como terminados

  • Administrar notificaciones específicas del repositorio

  • Controlar la configuración de notificaciones del repositorio (todas las actividades, predeterminadas o silenciadas)

Related MCP server: mcp-github-server

Prerrequisitos

  • Node.js 18 o superior

  • Token de acceso personal de GitHub (clásico) con notifications o alcance repo

Instalación

  1. Clonar este repositorio

    git clone https://github.com/yourusername/github-notifications-mcp-server.git
    cd github-notifications-mcp-server
  2. Instalar dependencias

    npm install
  3. Construir el proyecto

    npm run build
  4. Crea un archivo .env con tu token de GitHub

    GITHUB_TOKEN=your_github_personal_access_token_here

Uso

Ejecutar el servidor directamente

npm start

Uso con Claude Desktop

Agregue el servidor a su archivo claude_desktop_config.json :

{
  "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"
      }
    }
  }
}

Herramientas disponibles

Nombre de la herramienta

Descripción

list-notifications

Listar todas las notificaciones de GitHub para el usuario autenticado

mark-notifications-read

Marcar todas las notificaciones como leídas

get-thread

Obtener información sobre un hilo de notificaciones

mark-thread-read

Marcar un hilo específico como leído

mark-thread-done

Marcar un hilo como terminado

get-thread-subscription

Obtener el estado de suscripción para un hilo

set-thread-subscription

Suscribirse a un hilo

delete-thread-subscription

Darse de baja de un hilo

list-repo-notifications

Lista de notificaciones para un repositorio específico

mark-repo-notifications-read

Marcar las notificaciones de un repositorio como leídas

manage-repo-subscription

Administrar suscripciones al repositorio: all_activity, predeterminado (participación y @menciones) o ignorar (silenciar)

Ejemplos de indicaciones

A continuación se muestran algunos ejemplos de indicaciones que puede utilizar con Claude Desktop una vez que el servidor esté conectado:

  • "¿Puedes revisar mis notificaciones de GitHub?"

  • "Muéstrame mis notificaciones no leídas de las últimas 24 horas".

  • "Marcar todas mis notificaciones como leídas."

  • "¿Puedes contarme sobre el hilo de notificación 12345?"

  • "Darme de baja del hilo 12345."

  • "¿Qué notificaciones tengo para el repositorio octocat/Hello-World?"

  • "Marcar todas las notificaciones del repositorio octocat/Hello-World como leídas".

  • "Vigila toda la actividad en el repositorio octocat/Hello-World".

  • "Establecer el repositorio octocat/Hello-World con la configuración predeterminada (participación y @menciones)".

  • "Verifique mi configuración de notificaciones para el repositorio octocat/Hello-World".

  • "Silenciar todas las notificaciones del repositorio octocat/Hello-World".

Desarrollo

Manejo de URL

Este servidor convierte automáticamente las URL de la API de GitHub a sus URL de interfaz web correspondientes. Por ejemplo:

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

  • Convertido a: https://github.com/nodejs/node/pull/57557

La conversión maneja:

  • Conversión de dominio de api.github.com/repos a github.com

  • Corrección de ruta para solicitudes de extracción (cambio de pulls a pull ")

  • Preservación de segmentos de ruta adicionales

Estructura del proyecto

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

Edificio

npm run build

Pruebas

Ejecute las pruebas automatizadas:

npm test

Pruebe la conversión de URL manualmente:

npm run test:url

Licencia

Instituto Tecnológico de Massachusetts (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