mcpField
J
JSONPlaceholder MCP Server

JSONPlaceholder MCP Server

Local
github.com/akshay3001Developer Tools0Updated 81w ago

About JSONPlaceholder MCP Server

JSONPlaceholder MCP Server is an MCP server for the JSONPlaceholder API that also offers basic addition and subtraction tools. It is suited to demonstrating and testing MCP server integrations.

Key features

  1. 01Offers addition and subtraction tools
  2. 02Accesses user and post data
  3. 03Accesses comments, albums, and todos
  4. 04Supports VS Code MCP configuration

Use cases

  1. 01Reading JSONPlaceholder data through an MCP client
  2. 02Testing basic arithmetic tools in an MCP integration
  3. 03Configuring and running the server in VS Code

MCP support

As an MCP server, it exposes JSONPlaceholder API data and basic calculator tools to clients.

Configuration

Local server config is the same for every client. Copy it into your client’s MCP config file.

No install method listed yet

We haven’t collected a package or remote endpoint for this server. Follow the instructions in the project README.

Repository

Tools

No tool list yet

Local servers expose tools only once running on your machine, and the maintainer has not provided a tool list.

Details

From the project README

JSONPlaceholder MCP Server

A Model Context Protocol (MCP) server implementation that provides tools to interact with the JSONPlaceholder API and basic calculator functions.

Features

  • Calculator Server: Provides basic arithmetic operations (add, subtract)
  • JSONPlaceholder Server: Provides access to the JSONPlaceholder API data:
    • Users
    • Posts
    • Comments
    • Albums
    • Todos

Getting Started

Prerequisites
  • Node.js (v18.0.0 or later for native fetch support)
  • npm or yarn
Installation
  1. Clone the repository
  2. Install dependencies:
npm install
Running the Servers

You can run the servers using npm scripts:

# Run the JSONPlaceholder server (default)
npm start

# Run the Calculator server
npm run start:calculator

# Run the JSONPlaceholder server explicitly
npm run start:jsonplaceholder

VS Code Integration

This project includes configuration for VS Code integration. The MCP servers can be accessed through VS Code settings:

  1. In the .vscode/mcp.json file:
{
  "servers": {
    "my-calc": {
      "command": "node",
      "args": ["/path/to/servers/calculator.js"]
    },
    "my-mcp-server": {
      "command": "node",
      "args": ["/path/to/servers/jsonplaceholder.js"]
    }
  }
}
  1. Or in your VS Code settings.json:
"mcp": {
  "servers": {
    "my-calc": {
      "command": "node",
      "args": [
        "/path/to/servers/calculator.js"
      ]
    },
    "my-mcp-server": {
      "command": "node",
      "args": [
        "/path/to/servers/jsonplaceholder.js"
      ]
    }
  }
}

Comments

Markdown supported

New to MCP?

From what the protocol is to installing your first server, these answers cover most first questions.

An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.