get_item
Pack: hackernews · Endpoint: https://gateway.pipeworx.io/hackernews/mcp
Fetch a Hacker News story or comment by ID (e.g., “42153809”). Returns full text, score, author, timestamp, and child replies.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
id | number | yes | The numeric Hacker News item ID |
Example call
Arguments
{
"id": 42153809
}
curl
curl -X POST https://gateway.pipeworx.io/hackernews/mcp \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_item","arguments":{"id":42153809}}}'
TypeScript (@pipeworx/sdk)
import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();
const result = await pipeworx.call('get_item', {
"id": 42153809
});
More examples
{
"id": 38000000
}
Response shape
Always returns: id
| Field | Type | Description |
|---|---|---|
id | number | HN item ID |
type | string | Item type (story, comment, etc.) |
title | string | Item title |
url | string | Item URL |
by | string | Author username |
score | number | Item score/points |
descendants | number | Number of child comments |
time | number | Unix timestamp of item posting |
text | string | Item text content |
kids | array | Array of child item IDs |
parent | number | Parent item ID |
dead | boolean | Whether item is dead/removed |
deleted | boolean | Whether item is deleted |
Full JSON Schema
{
"type": "object",
"properties": {
"id": {
"type": "number",
"description": "HN item ID"
},
"type": {
"type": "string",
"description": "Item type (story, comment, etc.)"
},
"title": {
"type": "string",
"description": "Item title"
},
"url": {
"type": "string",
"description": "Item URL"
},
"by": {
"type": "string",
"description": "Author username"
},
"score": {
"type": "number",
"description": "Item score/points"
},
"descendants": {
"type": "number",
"description": "Number of child comments"
},
"time": {
"type": "number",
"description": "Unix timestamp of item posting"
},
"text": {
"type": "string",
"description": "Item text content"
},
"kids": {
"type": "array",
"description": "Array of child item IDs",
"items": {
"type": "number"
}
},
"parent": {
"type": "number",
"description": "Parent item ID"
},
"dead": {
"type": "boolean",
"description": "Whether item is dead/removed"
},
"deleted": {
"type": "boolean",
"description": "Whether item is deleted"
}
},
"required": [
"id"
]
}
Connect
Add this to your MCP client config, or use one-click install buttons:
{
"mcpServers": {
"hackernews": {
"url": "https://gateway.pipeworx.io/hackernews/mcp"
}
}
}
See Getting Started for client-specific install steps.