MCP Playground
A demonstration MCP server implementation in Go featuring real-time bidirectional file communication.
MCP Playground
A demonstration Model Context Protocol (MCP) server implementation in Go featuring real-time bidirectional file communication.
๐ฏ Features
- Real-Time Communication: Bidirectional file-based communication with live notifications
- MCP Resources: Live-updating resources with automatic change notifications
- File Monitoring: External file changes detected and reported in real-time
- Rich Tool Set: Complete set of tools for file interaction and monitoring
๐ Quick Start
# Build the server
task build
# Start monitoring and interact with the file
task run
๐ง MCP Tools
start_file_monitoring- Start real-time file monitoringwrite_to_file- Write messages to communication fileread_communication_file- Read current file contentsget_recent_changes- Get list of recent external changesget_monitoring_status- Check monitoring status
๐ก MCP Resources
file://communication- Live communication file with real-time updates
๐งช Testing
# Test real-time notifications
./test_realtime_resources.sh
# Test basic file monitoring
./test_file_monitoring.sh
๐ Claude Desktop Integration
Copy configuration to your Claude Desktop config:
{
"mcpServers": {
"mcp-playground": {
"command": "/path/to/mcp-playground/bin/mcp-playground",
"args": []
}
}
}
๐ How It Works
- Start monitoring with
start_file_monitoringtool - External changes to
communication.txtare detected automatically - Real-time notifications sent via MCP
notifications/resources/updated - Claude Desktop receives live updates and can react to external changes
Perfect for experimenting with MCP real-time capabilities! ๐ช
Related Servers
Scout Monitoring MCP
sponsorPut performance and error data directly in the hands of your AI assistant.
Alpha Vantage MCP Server
sponsorAccess financial market data: realtime & historical stock, ETF, options, forex, crypto, commodities, fundamentals, technical indicators, & more
Python Weather Server
A FastAPI-based server that provides weather information from the National Weather Service API, secured with OAuth 2.1.
Ollama MCP Server
Integrate local Ollama LLM instances with MCP-compatible applications.
Micromanage
A server for managing sequential development tasks with configurable rules using external .mdc files.
Network Monitor MCP Server
A server for real-time network packet monitoring and security analysis.
StatsWR MCP Server
A template for deploying a remote MCP server on Cloudflare Workers without authentication.
Markdown Sidecar MCP Server
An MCP server to access markdown documentation for locally installed NPM, Go, and PyPi packages.
Sailor
Generate and render Mermaid diagrams as images using LLMs.
Placid.app
Generate images and videos from templates using the Placid.app API.
WordPress MCP Server
Interact with WordPress sites via the REST API. Manage content, posts, and site configurations for multiple sites using natural language.
MCP Game Development Server
Automate game creation using React Three Fiber and manage projects with Linear integration.