MCP Playground - Postman for MCPs

MCP Playground - Postman for MCPs

By rosaboyle GitHub

-

Overview

What is MCP Playground?

MCP Playground is a powerful desktop tool designed for exploring, debugging, and interacting with Model Context Protocol (MCP) servers, integrating seamlessly with various Large Language Models (LLMs). It serves as a specialized version of Postman tailored for MCPs.

How to use MCP Playground?

To use MCP Playground, clone the repository from GitHub, install the necessary dependencies, and start the application. You can set up API keys and add MCP servers through the user interface.

Key features of MCP Playground?

  • Debugging and testing of MCP servers
  • Built-in integration with multiple LLM providers
  • Visualization of tool calls, resources, and prompts
  • Support for multiple parallel server connections
  • Comprehensive logging for detailed debugging
  • Modern, intuitive user interface

Use cases of MCP Playground?

  1. API testing for MCP server implementations
  2. Development and testing of new tools for MCP servers
  3. Integration testing of various LLMs with MCP tools
  4. Educational purposes to learn about Model Context Protocol
  5. Building applications that leverage MCP and LLMs

FAQ from MCP Playground?

  • Can MCP Playground connect to any MCP server?

Yes, it can connect to any MCP server that follows the Model Context Protocol.

  • Is there a cost to use MCP Playground?

No, MCP Playground is free to use.

  • What are the prerequisites for installation?

You need Node.js (v20.16.0 or higher) and npm (10.8.1 or higher) to install MCP Playground.

Content

MCP Playground - Postman for MCPs

A powerful desktop tool for exploring, debugging, and interacting with Model Context Protocol (MCP) servers, with built-in LLM integration. Think of it as "Postman but for MCPs."

MCP Playground Application

What is Model Context Protocol (MCP)?

MCP is a standardized protocol that enables LLMs (Large Language Models) to discover and use external tools, resources, and prompts. This protocol allows for consistent interaction between AI models and various capabilities, creating more powerful AI applications.

You can read more about MCPs in this post - https://pai.dev/model-context-protocol-and-why-it-matters-for-ai-agents-88e0e0a7bb73

What MCP Playground Does

MCP Playground helps developers:

  • Debug and test MCP servers
  • Connect multiple LLMs to MCP servers
  • Visualize and inspect tool calls, resources, and prompts
  • Load tools directly into supported LLM providers
  • Run multiple server connections in parallel
  • Log everything locally for detailed debugging

Key Features

  • MCP Server Debugging: Connect to any MCP server and explore its tools, resources, and prompts
  • Built-in LLM Integration: Connect directly with several LLM providers:
    • Fireworks AI
    • Groq
    • (More providers coming soon)
  • Tool Exploration: List and inspect all available tools from MCP servers
  • Resource & Prompt Discovery: View resources and prompts provided by MCP servers
  • Multiple Parallel Connections: Connect to multiple MCP servers simultaneously
  • Comprehensive Logging: Detailed local logs of all operations and responses
  • Tool Integration: Load MCP tools directly into supported LLMs
  • Modern Interface: Clean, intuitive UI for easy interaction with MCPs

Installation

Prerequisites

  • Node.js (v20.16.0 or higher)
  • npm (10.8.1 or higher)

Installation Steps

# Clone the repository
git clone https://github.com/rosaboyle/mcp-playground.git

# Navigate to the project directory
cd mcp-playground

# Install dependencies
npm install

# Build the project
npm run build

# Start the application
npm start

Usage Guide

Setting Up API Keys

You can easily set up your API keys through the application's user interface:

  1. Open the application and navigate to the "Providers" section
  2. Click "Set API Key" for the provider you want to configure
  3. Enter your API key in the dialog box and save

Setting up API Keys

Adding MCP Servers

To add a new MCP server through the user interface:

  1. Navigate to "MCP Playground" in the application
  2. Click "Add Server" and fill in the server details
  3. Click "Save" to store the server configuration

Adding MCP Server - Step 1 Adding MCP Server - Step 2

Adding New MCP Servers

To add a new MCP server:

  1. Use the "Add Server" button in the MCP Playground section
  2. Specify the server name, command, arguments, and environment variables
  3. Save the configuration

Development

# Start the application in development mode
npm run dev

Testing

Run the test suite:

npm test

For detailed information on testing, see TESTING.md.

Integration Examples

Fireworks AI Integration

MCP Playground allows Fireworks AI models to:

  1. Discover available tools from MCP servers
  2. Call these tools when appropriate
  3. Process the results from tool calls
  4. Generate coherent responses based on the tool outputs

For more details, see FIREWORKS_MCP_INTEGRATION.md.

Groq Integration

The Groq integration enables:

  • Initializing the Groq client with an API key
  • Making real API calls to the Groq API
  • Streaming chat completions from Groq AI models
  • Forwarding events from the stream to the renderer process

For more details, see GROQ_INTEGRATION.md.

Use Cases

  • API Testing: Debug and test your MCP server implementations
  • Tool Development: Develop and test new tools for MCP servers
  • LLM Integration: Test how different LLMs interact with MCP tools
  • Education: Learn about the Model Context Protocol
  • Development: Build applications that leverage MCP and LLMs

Troubleshooting

Common Issues

  • Connection Errors: Ensure your MCP server is running and the command/args in mcp.json are correct
  • API Key Issues: Verify that you've set the correct API keys in your .env file
  • Tool Call Failures: Check the server logs for errors in tool implementation

For specific integration issues:

For a list of known issues and limitations, see KNOWN_ISSUES.md.

Command-Line Exploration

For advanced users or troubleshooting, you can also explore MCP servers via command line:

npm run mcp-client

This will:

  • Connect to the configured MCP server
  • List all available tools
  • List all available resources
  • List all available prompts

Testing LLM Integrations via Command Line

The application supports testing various LLM providers with MCP servers via command line:

Fireworks AI + MCP

# Test the Fireworks MCP integration
npx ts-node src/test_fireworks_mcp.ts

# Run in interactive mode
npx ts-node src/test_fireworks_mcp.ts --interactive

Groq + MCP

# Test the Groq integration
npx ts-node src/test_groq.ts

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

See CONTRIBUTING.md for detailed guidelines on how to contribute to this project.

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add some amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

License

MIT License - see the LICENSE file for details.

Acknowledgments

  • Thanks to all contributors who have helped build and improve this tool
  • Special thanks to the MCP community for developing and promoting this standard
No tools information available.
No content found.