get_posts

Pack: jsonplaceholder · Endpoint: https://gateway.pipeworx.io/jsonplaceholder/mcp

Fetch all fake blog posts for testing and prototyping. Returns post ID, user ID, title, and body text.

Parameters

NameTypeRequiredDescription
limitnumbernoMaximum number of posts to return (default 10, max 100).

Example call

Arguments

{
  "limit": 10
}

curl

curl -X POST https://gateway.pipeworx.io/jsonplaceholder/mcp \
  -H 'Content-Type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_posts","arguments":{"limit":10}}}'

TypeScript (@pipeworx/sdk)

import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();

const result = await pipeworx.call('get_posts', {
  "limit": 10
});

More examples

{
  "limit": 25
}

Response shape

Always returns: count, posts

FieldTypeDescription
countnumberNumber of posts returned
postsarrayArray of blog posts
Full JSON Schema
{
  "type": "object",
  "properties": {
    "count": {
      "type": "number",
      "description": "Number of posts returned"
    },
    "posts": {
      "type": "array",
      "description": "Array of blog posts",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "number",
            "description": "Post ID"
          },
          "user_id": {
            "type": "number",
            "description": "ID of the user who created the post"
          },
          "title": {
            "type": "string",
            "description": "Post title"
          },
          "body": {
            "type": "string",
            "description": "Post body text"
          }
        },
        "required": [
          "id",
          "user_id",
          "title",
          "body"
        ]
      }
    }
  },
  "required": [
    "count",
    "posts"
  ]
}

Connect

Add this to your MCP client config, or use one-click install buttons:

{
  "mcpServers": {
    "jsonplaceholder": {
      "url": "https://gateway.pipeworx.io/jsonplaceholder/mcp"
    }
  }
}

See Getting Started for client-specific install steps.

Regenerated from source · build May 9, 2026