hn-mcp-server
Verified Safeby CyrilBaah
Overview
Provides programmatic access to HackerNews content via the Model Context Protocol (MCP) for AI assistants and other clients to search, retrieve, and analyze stories, comments, and user profiles.
Installation
docker-compose upEnvironment Variables
- LOG_LEVEL
- HN_API_BASE_URL
- HN_REQUEST_TIMEOUT
- HN_MAX_RETRIES
- PORT
Security Notes
The server uses Pydantic models extensively for input and output validation, significantly reducing common injection and data integrity risks. It leverages `httpx` for secure (HTTPS) external API communication. Environment variables are used for configuration, avoiding hardcoded secrets. A client-side rate limiter is implemented to prevent abuse of the upstream HackerNews Algolia API. No `eval` or `exec` calls are present. The HTTP transport relies on `uvicorn` and `starlette`, which are well-vetted libraries. One point is deducted as it exposes an HTTP/SSE endpoint, which inherently has a broader attack surface than stdio, although secured by standard practices.
Similar Servers
mcpo
Exposes Model Context Protocol (MCP) tools as OpenAPI-compatible HTTP servers.
mcp-omnisearch
Provides a unified interface for various search, AI response, content processing, and enhancement tools via Model Context Protocol (MCP).
hackerone-graphql-mcp-server
Provides a Model Context Protocol (MCP) interface to HackerOne's GraphQL API, allowing AI agents or tools to interact with HackerOne data.
mcp-claude-hackernews
Provides Claude Desktop with tools to browse and interact with Hacker News stories and comments.