SkillAgentSearch skills...

mcp-playground

Learn the Model Context Protocol by watching it happen — a real MCP client + server with a live JSON-RPC wire view, a guided tutorial, and Claude/GPT/Gemini agent modes. Built for teaching.

Install / Use

claude mcp add Nsj94 -- npx -y github:Nsj94/mcp-playground

If the server publishes to npm under a different name, use that package instead — check the repo README.

About this skill
🔌

MCP Server

Model Context Protocol server

Quality Score

74/100

Supported Platforms

Claude Code
Claude Desktop
Gemini CLI

Our assessment of mcp-playground

mcp-playground scores 74/100 on our quality scale, 857th of 961 AI & Machine Learning skills we index.

Its MCP Server is 10.0 KB long, well organised into 13 sections with 4 code examples: a thorough specification that gives an agent plenty to work with.

It has 3 GitHub stars, so there is little community track record yet; judge it on its content.

Substance
29/30
Structure
20/20
Description
15/15
Adoption
3/20
Freshness
15/15

Maintenance, license and trust

  • The repository was last updated about 3 months ago, so mcp-playground is actively maintained.
  • It is released under the MIT license, a permissive license that allows use, modification and commercial use with attribution.
  • Its trust signals score 92/100, with 1 caution from licensing, adoption, age or documentation. These come from repository metadata, not a code audit — read the skill file before letting an agent act on it.

mcp-playground compared with similar skills

All 4 of these similar skills score higher than mcp-playground; compare them before choosing.

SkillScoreStarsUpdatedFormat
mcp-playground (this skill)by Nsj947433mo agoMCP Server
claude-memby thedotmack100119.2ktodayCLAUDE.md
Agent-Reachby Panniantong100114.1k1d agoCLAUDE.md
Understand-Anythingby Egonex-AI10093.7ktodayCLAUDE.md
hyperframesby heygen-com10088.6ktodayCLAUDE.md

Frequently asked questions

How do I install mcp-playground?
Run claude mcp add Nsj94 -- npx -y github:Nsj94/mcp-playground. The install tabs above show the steps for each supported agent.
Which AI agents does mcp-playground work with?
It is written for Claude Code, Claude Desktop and Gemini CLI, as a MCP Server file. Other agents that read the same format can often use it too.
Is mcp-playground safe to use?
It is MIT-licensed and scores 92/100 on trust signals. Skills are instructions an agent will follow, so read the file before installing it and do not approve commands you do not understand.
Is mcp-playground still maintained?
The repository was last updated about 3 months ago, so mcp-playground is actively maintained.

MCP Playground

Learn the Model Context Protocol by watching it happen.

A small, readable MCP implementation built for teaching: a real MCP client, a real MCP server, and a UI that draws every JSON-RPC message that passes between them — live, on the wire, as it happens.

Python 3.10+ MCP License: MIT Providers

Nothing here is simulated. The frames drawn in the browser are literal copies of the JSON-RPC messages crossing a stdio pipe between two OS processes.

The MCP Playground: client on the left, the live JSON-RPC wire in the middle, the server's tool catalogue on the right

Left: the client. Middle: every message on the wire, expandable to raw JSON. Right: the server's catalogue. Bottom: where you are in the session.


Why this exists

Most MCP material either hand-waves the protocol ("it just connects your tools to AI") or drops you into a spec. This sits in between: you can see the messages, pause them, expand them, and cause them yourself.

Built to teach a junior engineer in about 25 minutes. It answers, concretely:

  • What actually travels between an MCP client and server?
  • What is the difference between a request and a notification?
  • Where does the LLM fit — and where does it not?
  • How do I add my own tool?

What you get

| | | |---|---| | 🔬 Explore mode | You are the client. Pick a tool, fill a schema-generated form, send a real tools/call. No API key needed. | | 🤖 Agent mode | A model is the client — Claude, GPT or Gemini. Same catalogue, same protocol. | | 📡 The wire | Every JSON-RPC frame, colour-coded by direction, expandable to raw JSON, with plain-English notes. | | 🎓 Guided tutorial | 15 spotlit steps. The ones that matter won't advance until you do the thing. | | 🐢 Slow-motion | The handshake takes ~4 ms. Slow it down until it's watchable. | | 🧰 12 built-in tools | Maths, text, system and notes. Real, and no credentials needed. | | 🔌 Real connectors | Google Workspace via magic-connectors — one login per user, switchable capabilities, no auth code in this repo. |


Run it

pip install -r requirements.txt
python run.py

Open http://127.0.0.1:8000 and press Connect.

Explore mode needs no API key at all.

Agent mode runs on Claude, GPT or Gemini — pick one from the provider chip in the top bar, paste a key or let it read .env, and press Test connection to confirm the key actually works. See docs/providers.md.

cp .env.example .env      # then fill in whichever provider you want
python run.py

The two modes

🔬 Explore — you are the client. Pick a tool, fill in a form generated from its JSON Schema, and press send. Best for teaching the protocol itself, because there is no model in the way.

🤖 Agent — a model is the client. Ask a question in plain English; the model reads the same tool catalogue the server advertised, picks a tool, and the client makes the MCP call. Best for teaching what an "AI agent" actually is.

Claude, GPT and Gemini all work, and all three receive an identical tool catalogue. Switching between them changes nothing on the wire — which is the neatest way to show that MCP is not an AI protocol.

The Slow-mo slider paces the frames. At full speed the handshake is over in about four milliseconds, which teaches nobody anything. Turn it up and the sequence becomes watchable.


The guided tutorial

Press 🎓 Tutorial in the top bar (it also starts by itself the first time you open the app). It walks through one complete MCP session in 15 steps, spotlighting each element and explaining it in a line or two.

Steps that represent a real protocol event will not advance on a Next button — they wait until you actually press Connect, actually open a frame, actually send a tools/call. Reading about a handshake and causing one are different experiences, and only the second one sticks.

Controls: → / ← to move, Esc to exit. Progress is remembered, so it only auto-starts once — press the button to replay it at any time.

The tour is a plain data structure at the top of ui/static/tour.js. Add, reword or reorder steps by editing that list; each step is a title, a short body, an optional why aside, and either a next button or an awaitClick selector.

Suggested lesson (about 25 minutes)

  1. Terminal first. Run python -m client.demo_cli. No UI, no model — just a client starting a server, shaking hands, and calling one tool, with every frame printed. This kills the idea that MCP is magic.
  2. Open the UI and run the 🎓 Tutorial. It walks the four footer steps as they light up: initialize → initialized → tools/list → tools/call. Let the junior press the buttons — the tour will not move on until they do.
  3. Expand a frame. Point out that notifications/initialized has no id field — that is what makes it a notification rather than a request, and why it gets no reply.
  4. Call a tool by hand in Explore mode. Note that the form was generated from the schema the server sent. Nothing about it is hard-coded in the UI.
  5. Switch to Agent mode. Ask "what is 1,247 × 89?". The model picks multiply. Same tools/call frame as before — the only difference is who decided to send it.
  6. Add a tool live (see below), reconnect, and watch a new card appear.

Adding a tool

This is the whole extension story. Drop a file in server/tools/:

# server/tools/my_tools.py
from server.registry import tool

@tool(category="my-team")
def greet(name: str) -> str:
    """Say hello to someone by name."""
    return f"Hello {name}!"

Reconnect. It is on the wire — discovered, schema-generated, callable by hand and by Claude. You never write protocol code or hand-author a JSON Schema.

The decorator takes a few optional extras:

@tool(
    category="my-team",
    destructive=True,                       # shows a WRITES badge in the UI
    params={"name": "Who to greet"},        # per-argument descriptions
    examples=[{"label": "greet Ada", "arguments": {"name": "Ada"}}],
)

Schemas are generated from your type hints: str, int, float, bool, list[X], dict, Optional[X] and Literal["a", "b"] (which becomes a dropdown). Arguments without a default become required.

Teaching point: description is not documentation, it is the interface. A model picks a tool almost entirely from its name, description and schema. Vague description → wrong tool. This is the most useful thing a junior can learn here.


What ships in the box

| Category | Tools | Notes | |---|---|---| | math | add, multiply, calculate | Smallest possible examples | | text | text_stats, transform_text | Shows Literal[...] → dropdown | | system | current_time, generate_ids, server_info | Proves the server is its own process | | notes | save_note, search_notes, delete_note | Real state, in data/notes.json | | google:* | gmail_search, gmail_get_message, drive_search, docs_read, calendar_list_events, … | Registered from magic-connectors, not written here |

The first four categories need no credentials at all — that is the MCP lesson, and it is complete without a single API key.

Google is different on purpose. It is a real integration served by magic-connectors: the user consents once, a broker holds the encrypted refresh token and renews it silently, and Gmail / Drive / Docs / Calendar switch on and off independently. Not one line of authentication code lives in this repository. Leave it unconfigured and the playground still runs with 12 tools. See docs/google-workspace.md.


Files worth reading, in order

| File | Why | |---|---| | server/registry.py | The @tool decorator and schema generation. The one file needed to extend this. | | server/main.py | The server. Three handlers, about 40 real lines. | | client/session.py | The client, plus the "tap" that copies every frame to the UI. | | client/agent.py | The agent loop. Note how little of it is MCP — and that it names no vendor. | | client/providers.py | Claude / GPT / Gemini behind one interface. The only vendor-specific file. | | ui/app.py | The websocket bridge. Explains why the browser is not an MCP client. | | ui/static/tour.js | The 15-step lesson script. Edit the STEPS list to reword or extend it. |


Things students get wrong

  • MCP is not an LLM thing. Nothing in the protocol mentions models. The agent loop is a layer on top — client/agent.py is separate from client/session.py for exactly this reason.
  • The server is a separate process. It can crash, be sandboxed, run as a different user, or live on another machine. Run server_info to make this concrete.
  • The websocket is not MCP. Browsers cannot spawn subprocesses. The browser talks to FastAPI; FastAPI holds the real client.
  • tools/list is not free. It happens once, after the handshake. If you add a tool while connected, you must reconnect to see it.

Troubleshooting

| Symptom | Cause | |---|---| | Page loads unstyled | ui/static/style.css or app.js missing | | "Could not start the server" | Run from the project root — the client spawns python -m server.main with cwd set there | | Agent mode: "needs an API key" | Open the provider chip, paste a key or add it to .env | | Green light but the agent still fails | The key is valid; you are likely out of quota, or the chosen model is not on that account | | Duplicate tool name error | Two @tool functions share a name; the registry rejects it on purpose | | New tool not appearing | Reconnect. tools/list runs once per session |

Related Skills

View on GitHub
GitHub Stars3
CategoryAI
Updated2mo ago
Forks0

Languages

Python

Trust signals

92/100

From repository metadata: license, adoption, age and documentation. Not a code audit — see the Safety scan above for what the skill file itself contains.

1 low
mcp-playground — MCP Server: Install & Safety Check | SkillAgent