File size: 10,776 Bytes
245fd86 518eab8 245fd86 518eab8 245fd86 518eab8 245fd86 518eab8 f2e427f 245fd86 518eab8 f2e427f 518eab8 f2e427f 518eab8 889efb1 518eab8 f2e427f 518eab8 f2e427f 518eab8 f2e427f 518eab8 f2e427f 518eab8 f2e427f 518eab8 f2e427f 518eab8 f2e427f 518eab8 f2e427f 518eab8 f2e427f 518eab8 f2e427f 518eab8 f2e427f 518eab8 f2e427f 518eab8 f2e427f 518eab8 f2e427f 518eab8 f2e427f 518eab8 f2e427f 518eab8 f2e427f 518eab8 f2e427f 518eab8 f2e427f 518eab8 f2e427f 518eab8 f2e427f 518eab8 f2e427f 518eab8 f2e427f 518eab8 f2e427f 518eab8 f2e427f 518eab8 f2e427f 518eab8 f2e427f 518eab8 f2e427f 518eab8 f2e427f 518eab8 f2e427f 518eab8 f2e427f 518eab8 f2e427f 518eab8 f2e427f 518eab8 f2e427f 518eab8 f2e427f 518eab8 f2e427f 518eab8 f2e427f 518eab8 f2e427f 518eab8 f2e427f 518eab8 f2e427f 518eab8 f2e427f 518eab8 f2e427f 518eab8 f2e427f 518eab8 f2e427f 518eab8 f2e427f 518eab8 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 |
---
title: Gradio MCP Playground
emoji: ๐
colorFrom: blue
colorTo: green
sdk: gradio
sdk_version: 4.31.0
app_file: app.py
pinned: true
license: apache-2.0
tags:
- mcp
- agents
- gradio
- hackathon
short_description: Open-source MCP tools without expensive LLM subscriptions!
---
# ๐ Gradio MCP Playground
<div align="center">
[](https://huggingface.co/spaces/seanpoyner/gradio-mcp-playground)
[](https://github.com/seanpoyner/gradio-mcp-playground)
[](LICENSE)
[](https://huggingface.co/hackathon)
**Open-source access to MCP tools without expensive LLM subscriptions**
[Try Demo](https://huggingface.co/spaces/seanpoyner/gradio-mcp-playground) | [Documentation](https://github.com/seanpoyner/gradio-mcp-playground) | [Report Bug](https://github.com/seanpoyner/gradio-mcp-playground/issues)
</div>
## ๐ฏ Our Mission
This project was created to solve a critical problem: **Most MCP tools require expensive LLM API subscriptions**, limiting access for developers, students, and enthusiasts.
We believe everyone should be able to:
- **๐ Experiment with MCP servers** without financial barriers
- **๐ฉโ๐ป Learn AI agent development** through hands-on experience
- **๐ Build and deploy tools** using Gradio's intuitive interface
- **๐ค Contribute to the open-source ecosystem** regardless of budget
## โจ What is Gradio MCP Playground?
A comprehensive platform for building, managing, and deploying Model Context Protocol (MCP) servers using Gradio. This playground democratizes access to MCP technology, allowing developers and enthusiasts to "play" with MCP servers, agents, and LLM-tool integrations while showcasing the powerful features of Gradio.
### Key Benefits
- **๐ฐ No API Keys Required** - Use the demo features without any LLM subscriptions
- **๐ Zero to Agent in Minutes** - Create functional MCP servers quickly
- **๐จ Visual Development** - Build complex agents through an intuitive UI
- **๐ Learning Platform** - Understand MCP concepts through interactive examples
- **๐ Community Driven** - Share and discover agents built by others
## ๐ Features Overview
### ๐ AI Assistant Hub
Three specialized AI assistants to guide your journey:
- **Adam (General Assistant)** - Your friendly companion with access to MCP tools like screenshots, web search, and file operations
- **Liam (MCP Specialist)** - Expert in MCP development, server creation, and pipeline building
- **Arthur (Agent Builder)** - Architect for sophisticated autonomous agents and custom implementations
### ๐ง Server Builder
Create MCP servers without extensive coding:
- **Quick Create** - Build servers from templates in seconds
- **Pipeline Builder** - Visual drag-and-drop interface for complex workflows
- **Templates Gallery** - Pre-built templates for common use cases:
- Calculator (arithmetic operations)
- Text Processor (text manipulation)
- Image Generator (AI image creation)
- Data Analyzer (CSV/data analysis)
- Web Scraper (data extraction)
- API Wrapper (turn any API into MCP)
### ๐ฅ๏ธ Server Management
Professional-grade server lifecycle management:
- **Active Servers** - Monitor running MCP servers in real-time
- **Server Registry** - Browse and install community servers
- **Quick Deploy** - One-click deployment to Hugging Face Spaces
- **Performance Monitoring** - Track server health and usage
### ๐ MCP Connections
Connect to any MCP server with ease:
- **Quick Connect** - Pre-configured connections to popular servers:
- Filesystem (file operations)
- Memory (persistent storage)
- GitHub (repository management)
- Brave Search (web search)
- **Custom Connections** - Connect to any MCP server via stdio or SSE
- **Tool Discovery** - Automatically discover and test available tools
- **Activity Log** - Track all tool executions and results
### ๐ค Agent Control Panel
Build and manage autonomous agents:
- **Agent Creation** - Visual interface for building AI agents
- **Agent Templates** - Start from proven agent architectures
- **Testing Suite** - Real-time testing and debugging
- **Deployment Options** - Deploy agents to various platforms
### ๐ Help & Resources
Comprehensive documentation and support:
- **Interactive Tutorials** - Step-by-step guides
- **API Reference** - Complete documentation
- **Video Guides** - Visual learning resources
- **Community Forum** - Get help and share knowledge
## ๐ Quick Start
### Try the Demo (This Space)
This Hugging Face Space provides a **demo version** showcasing all features. Some functionality is limited in the demo - for full features, install locally.
### Local Installation (Full Features)
```bash
# Clone the repository
git clone https://github.com/seanpoyner/gradio-mcp-playground
cd gradio-mcp-playground
# Install with all dependencies
pip install -e ".[all]"
# Launch the unified dashboard
gmp dashboard
# Or start on a custom port
gmp dashboard --port 8081
```
### CLI Tools
Powerful command-line tools for automation:
```bash
# Create servers from templates
gmp create calculator my-calc-server
gmp create image-generator my-image-server
# List available templates
gmp templates
# Manage servers
gmp server list # List all servers
gmp server start my-server # Start a server
gmp server stop my-server # Stop a server
# Connect to MCP servers
gmp connect filesystem /path/to/directory
gmp connect github --token YOUR_GITHUB_TOKEN
# Deploy servers
gmp deploy my-server # Deploy to Hugging Face Spaces
```
## ๐ก Use Cases
### For Developers
- **Rapid Prototyping** - Test MCP concepts without setup overhead
- **Tool Development** - Create reusable tools for AI assistants
- **API Integration** - Wrap any API as an MCP server
- **Learning Platform** - Understand MCP through hands-on examples
### For Educators & Students
- **Free Learning** - No expensive API keys needed
- **Interactive Teaching** - Demonstrate AI concepts visually
- **Student Projects** - Build without infrastructure worries
- **Research Platform** - Experiment with MCP implementations
### For Enthusiasts
- **Explore MCP** - Play with cutting-edge AI technology
- **Build Tools** - Create useful automation tools
- **Share Creations** - Contribute to the community
- **Learn by Doing** - Hands-on experience with AI agents
### For Businesses
- **Proof of Concepts** - Test ideas before investing
- **Custom Assistants** - Build domain-specific agents
- **Team Collaboration** - Share tools internally
- **Cost-Effective Development** - Prototype without API costs
## ๐ ๏ธ Creating MCP Servers
### Basic Example
```python
import gradio as gr
def greet(name: str) -> str:
"""Greet someone by name."""
return f"Hello, {name}!"
# Create a Gradio interface
demo = gr.Interface(fn=greet, inputs="text", outputs="text")
# Launch as an MCP server
demo.launch(mcp_server=True)
```
### Multi-Tool Server
```python
import gradio as gr
def summarize_text(text: str, max_length: int = 100) -> str:
"""Summarize a long text."""
return text[:max_length] + "..."
def translate_text(text: str, target_language: str = "es") -> str:
"""Translate text to another language."""
# Translation logic here
return f"Translated: {text}"
# Create tabbed interface with multiple tools
demo = gr.TabbedInterface(
[
gr.Interface(fn=summarize_text, inputs=["text", "number"], outputs="text"),
gr.Interface(fn=translate_text, inputs=["text", "text"], outputs="text")
],
["Summarizer", "Translator"]
)
# Launch as MCP server
demo.launch(mcp_server=True)
```
## ๐ Architecture & Technology
### Core Technologies
- **Frontend**: Gradio 4.31.0 with custom themes and components
- **Backend**: Python with async support for high performance
- **Protocol**: Model Context Protocol (MCP) by Anthropic
- **Deployment**: Optimized for Hugging Face Spaces
### Key Components
- **Unified Dashboard** - Single interface for all MCP operations
- **MCP Client Manager** - Handles connections to multiple servers
- **Template Engine** - Generates server code from templates
- **Pipeline Builder** - Visual workflow creation
- **Agent Framework** - Autonomous agent construction
### Security & Performance
- **Secure Storage** - Encrypted credential management
- **Rate Limiting** - Prevent API abuse
- **Caching** - Optimized response times
- **Error Handling** - Graceful failure recovery
## ๐ค Project Team & Contributors
### Core Team
- **Sean Poyner** - Project Lead & Creator
- **Ranadeep Laskar ([@flickinshots](https://github.com/flickinshots))** - Project Member & Collaborator
We welcome contributions from the community! See our [Contributing Guide](CONTRIBUTING.md) for details.
## ๐ Roadmap
### Current Features (v1.0)
- โ
Unified Dashboard
- โ
CLI Tools
- โ
Template Library
- โ
Basic MCP Connections
- โ
HF Space Deployment
### Coming Soon (v1.1)
- ๐ Advanced Pipeline Builder
- ๐ More Server Templates
- ๐ Enhanced Agent Capabilities
- ๐ Community Marketplace
- ๐ Mobile-Responsive UI
### Future Vision (v2.0)
- ๐ฎ Multi-Agent Orchestration
- ๐ฎ Custom Model Integration
- ๐ฎ Enterprise Features
- ๐ฎ Advanced Analytics
- ๐ฎ Plugin System
## ๐ License
This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.
## ๐ Acknowledgments
### Special Thanks To
- **Hugging Face** - For hosting this space and organizing the MCP Hackathon
- **Gradio Team** - For the amazing framework that makes this possible
- **Anthropic** - For creating the Model Context Protocol
- **Open Source Community** - For inspiration and support
### Built With
- [Gradio](https://gradio.app) - The UI framework powering our interface
- [Model Context Protocol](https://github.com/anthropics/mcp) - The protocol enabling tool integration
- [Python](https://python.org) - Our primary development language
## ๐ Support & Contact
- **GitHub Issues**: [Report bugs or request features](https://github.com/seanpoyner/gradio-mcp-playground/issues)
- **Discussions**: [Join the conversation](https://huggingface.co/spaces/seanpoyner/gradio-mcp-playground/discussions)
- **Documentation**: [Full docs on GitHub](https://github.com/seanpoyner/gradio-mcp-playground)
---
<div align="center">
<b>Made with โค๏ธ to democratize MCP technology for everyone</b>
<br>
<i>No expensive subscriptions required - just creativity and curiosity!</i>
</div> |