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
- 01Offers addition and subtraction tools
- 02Accesses user and post data
- 03Accesses comments, albums, and todos
- 04Supports VS Code MCP configuration
Use cases
- 01Reading JSONPlaceholder data through an MCP client
- 02Testing basic arithmetic tools in an MCP integration
- 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.
We haven’t collected a package or remote endpoint for this server. Follow the instructions in the project README.
Tools
Local servers expose tools only once running on your machine, and the maintainer has not provided a tool list.
Details
From the project READMEJSONPlaceholder 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
- Clone the repository
- 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:
- In the
.vscode/mcp.jsonfile:
{
"servers": {
"my-calc": {
"command": "node",
"args": ["/path/to/servers/calculator.js"]
},
"my-mcp-server": {
"command": "node",
"args": ["/path/to/servers/jsonplaceholder.js"]
}
}
}
- 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
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.