JSONPlaceholder MCP Server
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
JSONPlaceholder MCP Server (practice project)
A minimal MCP server, built with the official Python SDK's FastMCP
helper, that wraps the public JSONPlaceholder
REST API. It's meant as a template: swap BASE_URL and the tool
functions for your own internal API and the shape stays the same.
What it exposes
MCP tool | REST call |
|
|
|
|
|
|
|
|
|
|
|
|
Related MCP server: mcp-jsonplaceholder
1. Set up
cd jsonplaceholder-mcp
python -m venv .venv
source .venv/bin/activate # on Windows: .venv\Scripts\activate
pip install -r requirements.txt2. Sanity-check it runs
python server.pyIt should sit there waiting on stdio (no visible output is expected — that's normal, it's waiting for an MCP client to talk to it over stdin/stdout). Ctrl+C to stop.
You can also use the MCP inspector to poke at it interactively without wiring up a full client:
mcp dev server.pyThis opens a browser UI where you can call each tool by hand and see the JSON that comes back.
3. Connect it to Claude Desktop
Add an entry to your Claude Desktop config
(~/Library/Application Support/Claude/claude_desktop_config.json on
macOS, %APPDATA%\Claude\claude_desktop_config.json on Windows):
{
"mcpServers": {
"jsonplaceholder": {
"command": "/absolute/path/to/.venv/bin/python",
"args": ["/absolute/path/to/jsonplaceholder-mcp/server.py"]
}
}
}Restart Claude Desktop, and the jsonplaceholder tools should show up
in the tool picker.
4. Where to go from here (adapting to a real API)
To point this at an internal REST service instead:
Change
BASE_URL.Add auth — most internal APIs need a header or token. Add it once in
_get/_post(e.g.headers={"Authorization": f"Bearer {TOKEN}"}), pulling the token from an environment variable rather than hardcoding it.Replace each
@mcp.tool()function with one per operation you want to expose. Keep the docstrings precise — the LLM uses them to decide when and how to call each tool, so vague docstrings lead to the tool being picked (or skipped) incorrectly.Keep tools narrow and single-purpose rather than one giant "call any endpoint" tool — that's what makes MCP tools reliable for an LLM to select correctly.
This server cannot be deployed
Maintenance
Related MCP Connectors
JSONPlaceholder MCP — wraps JSONPlaceholder fake REST API (free, no auth)
Manage Pipefork API projects, drafts, connections, secrets, and deployments through MCP.
Related MCP Servers
- FlicenseNot gradedqualityNot gradedmaintenanceEnables users to manage data in a simple JSON file database through MCP tools and REST API. Supports creating, reading, updating, and deleting items organized in collections with auto-generated UUIDs.-
- AlicenseNot gradedqualityBmaintenanceWraps the JSONPlaceholder fake REST API to enable testing and prototyping with CRUD operations on posts, comments, and other resources via MCP.354 npmMIT
- FlicenseNot gradedqualityDmaintenanceEnables interaction with WordPress sites through the WordPress REST API, dynamically exposing all routes as MCP tools for content management and site configuration.-
- AlicenseAqualityDmaintenanceAn MCP server that provides tools to interact with the JSONPlaceholder fake REST API for testing and prototyping, supporting CRUD operations on posts, comments, todos, and users.769 npmMIT