Hacker News MCP server
Stories and comment threads from Hacker News. Add one address to your AI assistant and it can call the 2 tools below itself, with your FoxAPIs key. They cost the same credits as the REST API, and an answer with no data is not charged.
Server address
https://foxapis.com/mcp/data/hacker-news
Streamable HTTP, bearer key in the Authorization header. This address carries only the Hacker News tools; https://foxapis.com/mcp/data carries all of them, and ?source=hacker-news,github picks several.
What you can ask
Five prompts to give your assistant once the server is added:
- How many points and comments did https://news.ycombinator.com/item?id=8863 get?
- Read the comments on this Hacker News thread and summarize the main objections: https://news.ycombinator.com/item?id=8863
- Who posted https://news.ycombinator.com/item?id=8863 and when?
- What did the top-voted commenters say about this launch on Hacker News?
- Compare the reception of two Hacker News posts by points and comment count.
The tools your assistant gets
| Tool | What it returns | Inputs | Credits a call |
|---|---|---|---|
hackernews_post | A Hacker News story: title, link, points, comment count, author and posting time, from its item link. | url (required) | 1 |
hackernews_comments | The comment thread under a Hacker News item: top comments with authors and scores. | url (required) | 2 |
Credits come from the same file as the pricing page. Plans and top-ups are on pricing.
Set it up
Use your FoxAPIs key (it starts with fxp_) as the bearer token. Get one free at foxapis.com/trial.
Claude Code
Run in a terminal. Its docs.
claude mcp add --transport http foxapis-data https://foxapis.com/mcp/data/hacker-news \ --header "Authorization: Bearer YOUR_KEY"
The Claude Code docs show this form (--transport http, name, URL, --header) for a server that takes a bearer token.
Cursor
.cursor/mcp.json in a project, or ~/.cursor/mcp.json for every project. Its docs.
{
"mcpServers": {
"foxapis-data": {
"url": "https://foxapis.com/mcp/data/hacker-news",
"headers": {
"Authorization": "Bearer YOUR_KEY"
}
}
}
}Cursor's remote-server example uses a url and a headers object.
VS Code (Copilot)
.mcp.json at the workspace root, or ~/.copilot/mcp-config.json. Its docs.
{
"mcpServers": {
"foxapis-data": {
"type": "http",
"url": "https://foxapis.com/mcp/data/hacker-news",
"headers": {
"Authorization": "Bearer YOUR_KEY"
},
"tools": [
"*"
]
}
}
}Do not store a real key in a file you share.
Cline
cline_mcp_settings.json (open it from Cline's MCP Servers panel). Its docs.
{
"mcpServers": {
"foxapis-data": {
"type": "streamableHttp",
"url": "https://foxapis.com/mcp/data/hacker-news",
"headers": {
"Authorization": "Bearer YOUR_KEY"
},
"disabled": false,
"autoApprove": []
}
}
}Cline's docs say that leaving type out selects the older SSE transport, so keep type.
Zed
settings.json (Zed: open settings). Its docs.
{
"context_servers": {
"foxapis-data": {
"url": "https://foxapis.com/mcp/data/hacker-news",
"headers": {
"Authorization": "Bearer YOUR_KEY"
}
}
}
}
n8n
an MCP Client Tool node in a workflow. Its docs.
Endpoint: https://foxapis.com/mcp/data/hacker-news Server transport: HTTP Streamable Authentication: Header Auth Name: Authorization Value: Bearer YOUR_KEY
Not run by us: the fields are the ones n8n's MCP Client Tool documents. The server speaks Streamable HTTP.
Claude Desktop and ChatGPT
Not covered here: their custom-connector screens ask for sign-in (OAuth) or no authentication, and this server takes a bearer key in a header, so it works best in the clients above. We have not tested it in either.
A real answer
The hackernews_post tool called once through a real MCP client session on 20 November 2026 with the input {"url":"https://news.ycombinator.com/item?id=8863"}. Long text is cut and lists are cut to three items for display; it is not invented.
{
"url": "http://www.getdropbox.com/u/2/screencast.html",
"platform": "hackernews",
"extracted_at": "2026-11-20T11:13:28.426042+00:00",
"text": "http://www.getdropbox.com/u/2/screencast.html",
"title": "My YC app: Dropbox - Throw away your USB drive",
"author_name": "dhouston",
"author_handle": "dhouston",
"published_at": "2007-04-04T19:16:40+00:00",
"published_at_unix": 1175714200,
"date_source": "hn_firebase_api",
"likes": 104,
"comments_count": 71,
"content_type": "story",
"extras": {
"hn_type": "story",
"post_type": "story",
"kids": [
9224,
8917,
8884
],
"domain": "www.getdropbox.com",
"deleted": false,
"dead": false,
"hn_url": "https://news.ycombinator.com/item?id=8863"
},
"credits_used": 1,
"latency_ms": 213
}
Charged: 1 credit.
Try it free
Runs the hackernews_post call with the sample input below. No key and no sign-up; a few runs a day per visitor.
{
"url": "https://news.ycombinator.com/item?id=8863"
}
Other data-source MCP servers
Stack Overflow · Hugging Face · PubMed · bioRxiv · ClinicalTrials.gov · FDA · all of them
Free to start: 100 credits, no card. Then from $10. Credits you buy never expire.
Get my free keyThe same data over REST: Hacker News post · Hacker News comments. More: all MCP servers · people and company tools