GitHub Notifications MCP Server
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
notificationso alcancerepo
Instalación
Clonar este repositorio
git clone https://github.com/yourusername/github-notifications-mcp-server.git cd github-notifications-mcp-serverInstalar dependencias
npm installConstruir el proyecto
npm run buildCrea un archivo
.envcon tu token de GitHubGITHUB_TOKEN=your_github_personal_access_token_here
Uso
Ejecutar el servidor directamente
npm startUso 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 |
| Listar todas las notificaciones de GitHub para el usuario autenticado |
| Marcar todas las notificaciones como leídas |
| Obtener información sobre un hilo de notificaciones |
| Marcar un hilo específico como leído |
| Marcar un hilo como terminado |
| Obtener el estado de suscripción para un hilo |
| Suscribirse a un hilo |
| Darse de baja de un hilo |
| Lista de notificaciones para un repositorio específico |
| Marcar las notificaciones de un repositorio como leídas |
| 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/57557Convertido a:
https://github.com/nodejs/node/pull/57557
La conversión maneja:
Conversión de dominio de
api.github.com/reposagithub.comCorrección de ruta para solicitudes de extracción (cambio de
pullsapull")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 # DocumentationEdificio
npm run buildPruebas
Ejecute las pruebas automatizadas:
npm testPruebe la conversión de URL manualmente:
npm run test:urlLicencia
Instituto Tecnológico de Massachusetts (MIT)
Available Tools
11 toolsdelete-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
Scored across 11 tools
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.
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.
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.
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
Related MCP Connectors
An MCP server that gives your AI access to the source code and docs of all public github repos
Driflyte MCP server which lets AI assistants query topic-specific knowledge from web and GitHub.
An MCP server that integrates with Discord to provide AI-powered features.
GitHub Copilot MCP: code, repo, PR, workflow tools for AI assistants.
Related MCP Servers
- AlicenseBqualityDmaintenanceAn 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.4ISC
- AlicenseBqualityDmaintenanceAn MCP server that enables managing GitHub repositories, pull requests, issues, and more through natural language in Cursor or Claude Desktop.3910 npm4MIT
- AlicenseCqualityCmaintenanceA Model Context Protocol (MCP) server that enables AI assistants like Claude to interact with the GitHub API directly.23MIT
- AlicenseAqualityDmaintenanceAn MCP server that gives Claude live access to your GitHub workspace — PR reviews, issue triaging, repo search, and weekly digest reports through natural language.7MIT