mcp-claude-hackernews
Noticias de hackers de MCP Claude
Características
Explora las últimas noticias de Hacker News
Ver las historias más populares y mejor valoradas
Obtenga detalles de la historia
Leer comentarios de las historias
Formato limpio del contenido de Hacker News para una mejor legibilidad
Related MCP server: MCP Hacker News
Manifestación
Requisitos
Node.js 16 o superior
Escritorio de Claude
Conexión a Internet para acceder a la API de Hacker News
Instalación
Instalación manual
Clonar o descargar este repositorio:
git clone https://github.com/imprvhub/mcp-claude-hackernews
cd mcp-claude-hackernewsInstalar dependencias:
npm installConstruir el proyecto:
npm run buildEjecución del servidor MCP
Hay dos formas de ejecutar el servidor MCP:
Opción 1: Ejecutar manualmente
Abra una terminal o un símbolo del sistema
Navegar al directorio del proyecto
Ejecute el servidor directamente:
node build/index.jsMantenga esta ventana de terminal abierta mientras usa Claude Desktop. El servidor se ejecutará hasta que cierre la terminal.
Opción 2: Inicio automático con Claude Desktop (recomendado para uso habitual)
El Escritorio Claude puede iniciar automáticamente el servidor MCP cuando sea necesario. Para configurarlo:
Configuración
El archivo de configuración de Claude Desktop se encuentra en:
macOS :
~/Library/Application Support/Claude/claude_desktop_config.jsonVentanas :
%APPDATA%\Claude\claude_desktop_config.jsonLinux :
~/.config/Claude/claude_desktop_config.json
Edite este archivo para agregar la configuración del MCP de Hacker News. Si el archivo no existe, créelo:
{
"mcpServers": {
"hackerNews": {
"command": "node",
"args": ["ABSOLUTE_PATH_TO_DIRECTORY/mcp-claude-hackernews/build/index.js"]
}
}
}Importante : Reemplace ABSOLUTE_PATH_TO_DIRECTORY con la ruta absoluta completa donde instaló el MCP
Ejemplo para macOS/Linux:
/Users/username/mcp-claude-hackernewsEjemplo de Windows:
C:\\Users\\username\\mcp-claude-hackernews
Si ya tiene otros MCP configurados, simplemente añada la sección "hackerNews" dentro del objeto "mcpServers". A continuación, se muestra un ejemplo de configuración con varios MCP:
{
"mcpServers": {
"otherMcp1": {
"command": "...",
"args": ["..."]
},
"otherMcp2": {
"command": "...",
"args": ["..."]
},
"hackerNews": {
"command": "node",
"args": [
"ABSOLUTE_PATH_TO_DIRECTORY/mcp-claude-hackernews/build/index.js"
]
}
}
}El servidor MCP se iniciará automáticamente cuando Claude Desktop lo necesite, según la configuración de su archivo claude_desktop_config.json .
Uso
Reinicie Claude Desktop después de modificar la configuración
En Claude, usa el comando
hnpara interactuar con Hacker NewsEl servidor MCP se ejecuta como un proceso secundario administrado por Claude Desktop
Comandos disponibles
El MCP de Hacker News proporciona una única herramienta llamada hn con varios comandos:
Dominio | Descripción | Parámetros | Ejemplo |
| Obtenga las historias más recientes de Hacker News |
|
|
| Obtenga las principales noticias de Hacker News |
|
|
| Obtenga las mejores historias de Hacker News |
|
|
| Obtenga información detallada sobre una historia específica |
|
|
| Obtener comentarios para una historia |
|
|
Ejemplo de uso
A continuación se muestran varios ejemplos de cómo utilizar el MCP de Hacker News con Claude:
Comandos directos:
hn latest --50
hn top --20
hn best --30
hn history --29384756
hn comments --5Consultas en lenguaje natural:
También puedes interactuar con el MCP mediante lenguaje natural. Claude interpretará estas solicitudes y usará los comandos adecuados:
Muéstrame las 30 noticias más importantes de Hacker News hoy.
"¿Cuáles son las 40 últimas publicaciones en Hacker News?"
Me gustaría ver los 20 mejores artículos de Hacker News.
"¿Puedes traerme 30 noticias tecnológicas recientes de Hacker News?"
Dime cuáles son los 50 temas más populares en Hacker News.
Muéstrame 20 artículos de Hacker News sobre aprendizaje automático.
"Consígueme los 40 titulares más recientes de Hacker News"
¿Cuáles son las 30 discusiones más activas en Hacker News en este momento?
Me interesa leer los 40 artículos más populares de Hacker News de esta semana.
"Muéstrame una lista de los 20 mejores artículos de programación de Hacker News"
Solicitudes de traducción de idiomas:
Puedes solicitar que el contenido de Hacker News se traduzca a diferentes idiomas:
Muéstrame las 30 noticias más importantes de Hacker News hoy en español.
Obtén las 20 últimas publicaciones de Hacker News y tradúcelas al francés.
Me gustaría ver los 40 mejores artículos de Hacker News en alemán.
Muéstrame 30 noticias recientes de Hacker News traducidas al japonés.
Obtén los 20 mejores artículos de Hacker News y preséntalos en portugués.
Solución de problemas
Error "Servidor desconectado"
Si ves el error "MCP Hacker News: Servidor desconectado" en Claude Desktop:
Verifique que el servidor esté ejecutándose :
Abra una terminal y ejecute manualmente
node build/index.jsdesde el directorio del proyectoSi el servidor se inicia correctamente, utilice Claude mientras mantiene esta terminal abierta
Comprueba tu configuración :
Asegúrese de que la ruta absoluta en
claude_desktop_config.jsonsea correcta para su sistemaVerifique nuevamente que haya utilizado barras invertidas dobles (
\\) para las rutas de WindowsVerifique que esté utilizando la ruta completa desde la raíz de su sistema de archivos
Pruebe la opción de inicio automático :
Configure el script de inicio automático para su sistema operativo como se describe en la sección "Configuración de scripts de inicio automático".
Esto garantiza que el servidor siempre esté funcionando cuando lo necesite.
Herramientas que no aparecen en Claude
Si las herramientas de Hacker News no aparecen en Claude:
Asegúrese de haber reiniciado Claude Desktop después de la configuración
Verifique los registros de Claude Desktop para detectar cualquier error de comunicación de MCP
Asegúrese de que el proceso del servidor MCP se esté ejecutando (ejecútelo manualmente para confirmarlo)
Verifique que el servidor MCP esté registrado correctamente en el registro de MCP de Claude Desktop
Comprobando si el servidor está funcionando
Para comprobar si el servidor está funcionando:
Windows : Abra el Administrador de tareas, vaya a la pestaña "Detalles" y busque "node.exe"
macOS/Linux : Abra la Terminal y ejecute
ps aux | grep node
Si no ve el servidor en ejecución, inícielo manualmente o utilice el método de inicio automático.
Contribuyendo
¡Agradecemos sus contribuciones! No dude en enviar una solicitud de incorporación de cambios.
Licencia
Este proyecto está licenciado bajo la Licencia Pública de Mozilla 2.0: consulte el archivo de LICENCIA para obtener más detalles.
Enlaces relacionados
Available Tools
6 toolshn_bestC
Get the best stories from Hacker News
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Number of items to fetch (1-50, default: 10) |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
No annotations are provided, so the description carries the full behavioral burden. It conveys only that this is a read of stories; it says nothing about ordering semantics ('best' by what ranking?), result freshness, or pagination, which matters most given the hn_top sibling.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
A single front-loaded sentence with zero waste. It is appropriately sized, though its brevity is part of why key distinctions are missing.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
For a simple one-parameter list tool this is minimally adequate, and the schema covers the input. However, with no output schema and no annotation coverage, the unresolved 'best' vs 'top' ambiguity and lack of ordering information leave a meaningful gap.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 100% and the single 'limit' parameter is fully documented in the schema (range, default), so the baseline of 3 applies. The description adds no additional meaning about the parameter.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
States a clear verb+resource ('Get the best stories from Hacker News'), but the sibling hn_top makes 'best' ambiguous — an agent cannot tell from the description how 'best' differs from 'top' or 'latest'. The purpose is understandable but not differentiated from its siblings.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
No guidance on when to choose this over hn_top, hn_latest, or hn_search. There is no statement of context, prerequisites, or exclusions, leaving selection between four similarly-named story-fetching tools to guesswork.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
hn_commentsB
Get top-level comments for a story (by story ID or index from the last story list)
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Number of items to fetch (1-50, default: 20) | |
| story_id | No | The ID of the story to get comments for | |
| story_index | No | The index (1-based) of the story from the last fetched list |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
No annotations are provided, so the description carries the full burden. 'Top-level comments' is a useful behavioral nuance (excludes nested replies), but the description omits return format, pagination, whether the call is safe/read-only, and any rate or auth context for a tool that hits an external API.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
A single compact sentence with the resource front-loaded and input modes in a parenthetical. Efficient, though the parenthetical is dense and slightly compressed.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
With no output schema and no annotations, the description should explain the return shape and the mutual exclusivity of story_id vs story_index for a 0-required-param tool. It covers purpose adequately but leaves these gaps.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 100%, so the baseline is 3. The description names story ID and index as inputs but does not clarify that these are alternative selectors or which takes precedence when both are omitted (0 required params).
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
States a specific verb (Get) and resource (top-level comments for a story), which differentiates it from siblings like hn_story and hn_latest. The parenthetical clarifies input modes but the description doesn't explicitly contrast with siblings.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The parenthetical implies usage context ('index from the last story list'), suggesting it's meant to be called after a list tool, but no explicit when-to-use or alternatives are stated. Usage is inferred rather than directed.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
hn_latestB
Get the latest/newest stories from Hacker News
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Number of items to fetch (1-50, default: 10) |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
No annotations are provided, so the description carries the full burden of behavioral disclosure. 'Get' implies a read-only retrieval, but the description does not mention authentication, rate limits, pagination, return format, or any other operational behavior.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is a single, front-loaded sentence with no wasted words. It communicates the core purpose immediately and is appropriately sized for a simple retrieval tool.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
For a simple tool with one optional parameter and no output schema, the description is minimally adequate. However, it omits any indication of the return shape and does not help the agent choose between this and similar sibling tools like hn_top or hn_best.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
The input schema has 100% description coverage, fully documenting the single 'limit' parameter with its default and range. The description itself adds no additional parameter meaning, so the baseline of 3 is appropriate.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description states a specific verb and resource: getting latest/newest stories from Hacker News. It distinguishes itself somewhat from hn_top and hn_best by emphasizing recency rather than ranking, but it does not explicitly name or differentiate against those sibling tools.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
There is no guidance on when to use this tool versus alternatives such as hn_top, hn_best, or hn_search. The agent can infer that it is for recent stories, but no conditions, exclusions, or alternatives are provided.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
hn_searchB
Search Hacker News stories by keyword, via the Algolia HN Search API
| Name | Required | Description | Default |
|---|---|---|---|
| sort | No | Rank by relevance (default) or most recent first | relevance |
| limit | No | Number of items to fetch (1-50, default: 10) | |
| query | Yes | Search terms, e.g. "rust async" or "claude mcp" |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations, the description carries the full burden, and it discloses little beyond the data source. It does not say whether results are stories only (vs. comments, which has a sibling tool), whether the index is rate-limited or eventually consistent, or what the response shape/pagination looks like.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
A single front-loaded sentence with the verb, resource, and source; nothing redundant or padded.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
For a simple three-parameter search tool with full schema coverage and no output schema, the description is minimally viable but thin: it omits any behavioral notes (result set contents, rate limits, pagination) that an agent with no annotations would benefit from.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 100%, so sort, limit, and query are all self-documented with enums, defaults, and ranges. The description adds only the confirmation that 'query' means keywords, matching the baseline of 3 when the schema does the heavy lifting.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
States a specific verb (Search), resource (Hacker News stories), and scope qualifier (by keyword), plus the backing data source (Algolia HN Search API). The 'by keyword' framing implicitly distinguishes it from the sibling listing tools (hn_latest, hn_top, hn_best), though it does not name them.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
Usage is implied: reach for this when you have search terms rather than wanting a ranked feed. There is no explicit when-to-use/when-not guidance and no reference to the sibling tools an agent must choose between (e.g., hn_latest for recent items vs. this for keyword queries).
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
hn_storyA
Get details for a specific story by ID
| Name | Required | Description | Default |
|---|---|---|---|
| story_id | Yes | The ID of the story to fetch |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
No annotations are provided, so the description is the sole source. It indicates a read operation ('get details'), but does not disclose error behavior, rate limits, or response structure. Basic transparency is achieved.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is a single, well-structured sentence with no extraneous words or filler. It is optimally concise.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
For a simple one-parameter tool with no output schema, the description provides minimal but sufficient context. It lacks detail on what 'details' includes, which is acceptable for a simple fetch.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema coverage is 100% as the only parameter 'story_id' has a description. The description 'by ID' aligns with the parameter, adding no new meaning. Baseline score applies.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the action ('get details'), the resource ('story'), and the identification method ('by ID'). It distinctly differentiates from sibling tools (lists like hn_best, hn_top) which fetch multiple items.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description implies usage when a specific story ID is known, but does not explicitly exclude cases like fetching stories in bulk or provide alternatives. Sibling tool names indirectly suggest other use cases.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
hn_topB
Get the top-ranked stories from Hacker News
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Number of items to fetch (1-50, default: 10) |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
No annotations are provided, so the description carries the full behavioral burden, and it discloses almost nothing beyond the implied read-only nature of 'Get'. It does not say whether results are live-fetched from the HN API, cached, paginated, or what the return structure looks like for a tool with no output schema.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
A single front-loaded sentence with no filler or redundancy. Every word earns its place, and the core purpose is stated immediately.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
For a one-optional-parameter list tool with no output schema and no annotations, the description is minimally adequate: it identifies the resource but not what 'top-ranked' means (score? front page?) or what a returned item contains. Enough to attempt a call, not enough to predict the result.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 100% for the single 'limit' parameter, including range and default, so the description need not restate it. The description adds no meaning beyond the schema, which is the expected baseline here.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description states a specific verb and resource ('Get the top-ranked stories from Hacker News'), which is more informative than the bare name hn_top. However, it offers no differentiation from close siblings like hn_best and hn_latest, leaving 'top-ranked' nearly synonymous with 'best' and forcing the agent to guess which ranking endpoint to use.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
There is no guidance on when to choose this tool over hn_best, hn_latest, or hn_search, and no stated prerequisites or context. The agent must infer selection purely from the tool names.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
5 tool updates
v0.2.0- Changed
hn_best1 field changed- changed
Input schema / properties / limit / descriptionPrevious value: -"Number of stories to fetch (1-50, default: 10)"New value: +"Number of items to fetch (1-50, default: 10)"
- Changed
hn_comments1 field changed- added
Input schema / properties / limitAdded value: +{ + "default": 20, + "description": "Number of items to fetch (1-50, default: 20)", + "maximum": 50, + "minimum": 1, + "type": "number" +}
- Changed
hn_latest1 field changed- changed
Input schema / properties / limit / descriptionPrevious value: -"Number of stories to fetch (1-50, default: 10)"New value: +"Number of items to fetch (1-50, default: 10)"
- Added
hn_search - Changed
hn_top1 field changed- changed
Input schema / properties / limit / descriptionPrevious value: -"Number of stories to fetch (1-50, default: 10)"New value: +"Number of items to fetch (1-50, default: 10)"
5 tool updates
v1.0.0- First observed
hn_best - First observed
hn_comments - First observed
hn_latest - First observed
hn_story - First observed
hn_top
TDQS
Scored across 6 tools
hn_latest, hn_top, and hn_best target distinct Hacker News ranking feeds, while hn_search, hn_comments, and hn_story have clearly separate roles. There is no meaningful overlap or ambiguity in purpose.
All tools use the same hn_ prefix and snake_case convention. The suffixes vary semantically (feeds, search, comments, story) but the naming pattern is predictable and consistent.
Six tools are well-scoped for a read-only Hacker News server covering feeds, search, story details, and comments. Each tool earns its place without unnecessary duplication.
The surface covers the core HN read workflows: latest/top/best feeds, search, story details, and top-level comments. Minor gaps exist, such as nested comment retrieval and dedicated Ask/Show/Jobs feeds, but agents can work around them with search or story IDs.
Maintenance
Related MCP Connectors
Dive into the latest and greatest from the tech world with our Hacker News MCP server.
Hacker News MCP — search and retrieve stories from Hacker News
Deterministic Hacker News developer sentiment, themes & feature requests via MCP. No API key.
Search Hacker News, Bluesky, and Substack from a single MCP interface
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceIntegration project for Model Context Protocol (MCP) servers with Claude Desktop App, enabling filesystem operations, development support, and file management through natural language.-
- AlicenseAqualityDmaintenanceA Model Context Protocol server that enables AI tools like Claude and Cursor to fetch and interact with live Hacker News data (posts, comments, users) via standardized MCP endpoints.11109 npm34MIT
- FlicenseNot gradedqualityDmaintenanceEnables AI assistants to fetch top, new, best, Ask HN, Show HN, and job stories, as well as specific posts, comments, and user information from Hacker News through the Model Context Protocol.1-
- AlicenseAqualityCmaintenanceMCP server for Hacker News that enables AI agents to search stories, read comments, and track tech trends via the public Hacker News API and Algolia HN Search.1013 npm4MIT