Skip to main content

MCP Playbook: Auto-generated docs and a live playground for your MCP servers

Updated Markdown
MCP Playbook: Auto-generated docs and a live playground for your MCP servers

MCP Playbook: Auto-generated docs and a live playground for your MCP servers

If you've built an MCP (Model Context Protocol) server, you know the drill. You ship it, then your teammates ask: "Which tools does this expose? What parameters do they take? How do I actually try them?"

You end up writing docs by hand, they go stale the moment you add a new tool, and nobody knows how to test anything without cloning the repo and reading the source.

MCP Playbook solves that. It connects to your MCP server, reads every tool's schema, and generates an interactive docs site with a live "Try it" playground β€” automatically. Think Storybook or Swagger UI, but for MCP tools.

πŸ”— Docs: https://rahulnag.github.io/mcp-playbook/

▢️ Live playground: https://rahulnag.github.io/mcp-playbook/playground/

πŸ“¦ npm: https://www.npmjs.com/package/mcp-playbook


The problem

MCP is exploding right now. Every week there's a new server exposing tools for file systems, databases, APIs, GitHub, Slack, you name it. But the developer experience around discovering and testing those tools is still rough.

You have two options today:

  1. Read the source code and figure out the tool schemas yourself

  2. Use MCP Inspector, which is great for debugging but lives on localhost and is designed for protocol-level inspection, not for sharing with your team

Neither gives you shareable, always-current, try-it-in-the-browser docs.

That's the gap MCP Playbook fills.


What you get

Connect MCP Playbook to your server and it generates a web UI with:

  • Docs for every tool and parameter β€” types, required/optional, defaults, descriptions, allowed values

  • A "Try it" form built from each tool's schema β€” run any tool against your real server from the browser

  • Saved examples your team can load with one click

  • Schema viewer with the raw JSON Schema, ready to copy

  • A static site build you can deploy as a URL and share with anyone

No hand-written docs. No drift. Every run reads the latest tools straight from your server over the standard MCP protocol.


Quick start

You need Node.js 18+ and an MCP server in any language (Node, Python, Go, Rust β€” it just talks MCP).

1. Install

npm install -D mcp-playbook

Install it in your project β€” the config file imports from the package, so it needs to be in your node_modules.

2. Create a config

npx mcp-playbook init

This creates playbook.config.ts and never overwrites an existing one.

3. Point it at your server

Open the config and change command / args to whatever you'd normally type to start your server:

import { defineConfig } from 'mcp-playbook'

export default defineConfig({
  servers: [
    {
      name:      'My Server',
      transport: 'stdio',        // Playbook starts the server for you
      command:   'node',
      args:      ['./server.js'],
    },
  ],
})

Already have a running HTTP server? Just point at the URL:

{
  name:      'Remote API',
  transport: 'http',
  url:       'http://localhost:3001/mcp',
}

4. Run it

npx mcp-playbook dev

Your browser opens at http://localhost:4242 with every tool listed, docs rendered, and Run tool working against your real server. Edit the config while it runs and the page reloads.

5. Deploy it

npx mcp-playbook build

This bakes your tools into a static site in playbook-dist/. Upload it to GitHub Pages, Vercel, Netlify, S3, nginx β€” anywhere that serves static files. On the hosted site, Docs, Examples and Schema work; Run tool is disabled (no live server behind a static site).


How it works

MCP Playbook speaks the standard MCP protocol. Depending on your server, it uses one of three transports:

Your server Transport
Runs locally as a command (node server.js, python server.py) stdio
Is already running at a URL like http://…/mcp http
Is already running with the older SSE transport sse

For stdio servers, Playbook starts your server for you and talks to it over stdin/stdout. For http/sse servers, it connects to the running instance. Either way, it calls tools/list and reads every tool's schema β€” that's the entire integration.

No SDK changes. No annotations. No decorators. If it speaks MCP, it works.


A config that does more

Everything beyond servers is optional, but a few fields are worth knowing about.

Environment variables for stdio servers

If your server reads process.env.API_KEY, you need to pass it through explicitly. A stdio server only sees a small basic set of env vars plus whatever you list β€” for safety:

env: {
  API_KEY: process.env.API_KEY!,   // reads from your terminal, not the file
  DB_URL:  process.env.DB_URL!,
},

The process.env.X pattern keeps secrets out of the config and out of git.

Headers for http / sse servers

For remote servers that need auth, use headers:

headers: {
  Authorization: `Bearer ${process.env.API_TOKEN}`,
},

Rule of thumb: env for stdio servers (passed to the process Playbook starts). headers for http/sse servers (sent over the network).

Saved examples

Examples show up in a tool's Examples tab. Click Load β†’ to copy them into the Try it form:

examples: {
  get_user: [
    {
      label:       'Fetch admin user',
      input:       { userId: 'usr_admin_001' },
      description: 'Look up the main admin account',
    },
  ],
},

The key is the tool name exactly as your server defines it.

Tags for organization

Tags show as badges on tool pages and match the sidebar search:

tags: {
  'User management': ['get_user', 'create_user'],
  'Admin':           ['purge_cache'],
},

Multiple servers, one UI

List as many servers as you want in servers. They all show up in one sidebar, with per-server filtering and connection status (green dot = connected, red = couldn't reach).


Server recipes

Copy the one that matches your setup:

// Node.js
{ name: 'My Server', transport: 'stdio', command: 'node', args: ['./dist/server.js'] }

// TypeScript with tsx
{ name: 'My Server', transport: 'stdio', command: 'npx', args: ['tsx', './src/server.ts'] }

// Python
{ name: 'My Server', transport: 'stdio', command: 'python', args: ['server.py'] }

// Python in a virtualenv
{ name: 'My Server', transport: 'stdio', command: './.venv/bin/python', args: ['server.py'] }

// Python with uv
{ name: 'My Server', transport: 'stdio', command: 'uv', args: ['run', 'server.py'] }

// Compiled binary (Go, Rust…)
{ name: 'My Server', transport: 'stdio', command: './bin/my-server' }

// Published npm MCP server
{ name: 'Filesystem', transport: 'stdio', command: 'npx',
  args: ['-y', '@modelcontextprotocol/server-filesystem', './'] }

// Running HTTP server with auth
{ name: 'My Server', transport: 'http',
  url: 'https://api.example.com/mcp',
  headers: { Authorization: `Bearer ${process.env.API_TOKEN}` } }

Deploying the docs

mcp-playbook build produces a folder of plain HTML, JS and images:

playbook-dist/
β”œβ”€β”€ index.html          the page
β”œβ”€β”€ assets/             JS and CSS
β”œβ”€β”€ data.json           your tools, baked in at build time
β”œβ”€β”€ favicon.svg
└── og-image.png        link-preview image

Upload the contents of that folder to any static host. A few one-liners:

# GitHub Pages: use the workflow in the docs
# Vercel
vercel deploy playbook-dist --prod

# Netlify
netlify deploy --dir playbook-dist --prod

# Cloudflare Pages
npx wrangler pages deploy playbook-dist

# AWS S3
aws s3 sync playbook-dist s3://your-bucket-name --delete

# Your own nginx
npx mcp-playbook build --output /var/www/mcp-docs

Two things to know:

  • Secrets are never written to the output. Values from env and headers stay out of the built files.

  • Your servers must be reachable during build. Stdio servers get started; http/sse servers must already be running.

Set siteUrl in your config to your deployed URL, and shared links on LinkedIn, X, and Slack will show a proper preview image.


How it compares to MCP Inspector

They solve different problems and work well together:

MCP Inspector MCP Playbook
Made for Debugging the protocol while you build Documenting and sharing tools with your team
Shareable URL / static site ❌ localhost only βœ… mcp-playbook build
Examples saved in git ❌ βœ…
Many servers in one view ❌ one at a time βœ…
Raw JSON-RPC, OAuth debugging βœ… ❌ not the goal

Inspector while you're building. Playbook when your team (or your customers) need to browse and try your tools.


What's on the roadmap

  • πŸ—“ Resources and prompts (not just tools)

  • πŸ—“ Theming via theme

  • πŸ—“ Tool call history

  • πŸ—“ Export calls as curl / fetch / SDK snippets

  • πŸ—“ Schema diff when tools change

  • πŸ—“ OAuth 2.0 login in the UI

  • πŸ—“ Embeddable <MCPPlaybook /> React component

  • πŸ”­ Mock mode (no real server needed)

Shipped already: docs, Try it, Examples, Schema tabs, stdio / HTTP / SSE transports, live reload, static build, multi-server dashboard.


Try it

npm install -D mcp-playbook
npx mcp-playbook init
npx mcp-playbook dev

That's it. Three commands from "I have an MCP server" to "my whole team can browse and run every tool."

Contributions are very welcome β€” bug reports, docs fixes, features. There's a contributing guide with setup and project structure.

If MCP Playbook saves you time, a ⭐ on GitHub goes a long way. And if you build something with it, I'd love to hear about it in the comments.

About the author

  • CapsCode: Empowering Innovation Through Education and Technology

    CapsCode is a pioneering edtech and web development company committed to transforming the lives of students and businesses alike. Founded with the vision of creating a brighter, tech-driven future, CapsCode empowers students by providing world-class coding education while enabling businesses to achieve their goals with cutting-edge IT solutions.

    For Students At CapsCode, we believe that coding is the language of tomorrow. Through engaging and industry-relevant courses, personalized mentoring, and hands-on workshops, we help students develop: Problem-solving skills: Preparing them for real-world challenges. Technical expertise: Equipping them with practical knowledge of coding and web development. Confidence in technology: Making them future-ready for careers in IT and beyond.

    We foster an environment where students not only learn to code but also learn to innovate, collaborate, and think critically.

    For Businesses CapsCode offers bespoke IT solutions tailored to the unique needs of businesses. From responsive web development to advanced digital marketing strategies, our services are designed to help companies grow their online presence and streamline their operations. Our key offerings include: Custom website and software development E-commerce platform creation Lead generation and digital marketing Professional email and Google Business setup

    We act as partners in innovation, helping businesses leverage technology to reach new heights.

    Our Mission Our mission is to empower individuals and organizations by bridging the gap between technology and accessibility. We aim to inspire a new generation of coders while helping businesses thrive in a competitive digital landscape.

    Why Choose CapsCode? Over 9 years of IT industry expertise. A blend of education and professional IT services under one roof. A commitment to fostering growth, innovation, and success.

    Join us in shaping the futureβ€”whether you're a student eager to unlock your potential or a business ready to embrace the possibilities of technology.

    Learn. Build. Grow. With CapsCode.

No comments yet. Be the first to comment.