MCP Playground
A playground for MCP implementations featuring multiple microservices, including news and weather examples.
MCP Playground
Table of Contents
- Description
- Requirements
- Technologies and Tools
- Local Installation Instructions
- Available Make Commands
- Connecting with Claude Desktop
Description
This project is a playground for MCP (Model Context Provider) implementations, featuring multiple microservices including a News MCP and Weather MCP. The services are implemented using MCP with stdio transport, providing a simple and efficient way to expose functionality through standard input/output streams.
Requirements
- Python 3.12
uvpackage manager- Virtual environment support
Technologies and Tools
mcp[cli]: Model Context Provider for service communicationhttpx: Modern HTTP client for Pythonpython-dotenv: Environment variable management
Local Installation Instructions
- Clone the repository:
git clone https://github.com/RonFelsenfeld/mcp-playground.git
cd mcp-playground
- Set up the virtual environment and install dependencies:
make setup
- Activate the virtual environment:
source .venv/bin/activate
- Sync dependencies:
make sync
-
Run the MCP services:
- To run the News MCP service:
python -m src.news_mcp.main- To run the Weather MCP service:
python -m src.weather_mcp.main
Available Make Commands
make setup: Creates a new virtual environmentmake activate: Shows activation command for the virtual environmentmake sync: Syncs project dependenciesmake freeze-dependencies: Freezes current dependencies to requirements.txtmake clean: Removes virtual environment and lock files
Connecting with Claude Desktop
This project can be connected to Claude Desktop to test and interact with the MCP services using Anthropic's Model Context Protocol (MCP).
-
Install Claude Desktop, available here
-
Open Claude, go to Settings -> Developer
-
Click "Edit Config"
-
Open "claude_desktop_config.json" file
-
Copy-paste the following JSON inside the file:
{
"mcpServers": {
"weather": {
"command": "<ABSOLUTE_PATH_TO_UV>",
"args": [
"--directory",
"<YOUR_PROJECT_PATH>",
"run",
"-m",
"src.weather_mcp.main"
]
},
"news": {
"command": "<ABSOLUTE_PATH_TO_UV>",
"args": [
"--directory",
"<YOUR_PROJECT_PATH>",
"run",
"-m",
"src.news_mcp.main"
],
"env": {
"NEWS_API_KEY": "<YOUR_NEWS_API_KEY>"
}
}
}
}
Replace:
<ABSOLUTE_PATH_TO_UV>with the absolute path to youruvexecutable (from thewhich uvcommand)<YOUR_PROJECT_PATH>with the absolute path to your project directory
For the News MCP service, you'll need a News API key from newsdata.io. You can get a free API key by:
- Creating an account at newsdata.io
- Going to your dashboard
- Generating a new API key
After generating you API key, replace <YOUR_NEWS_API_KEY> with it.
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
Devopness
Devopness MCP server for DevOps happiness! Empower AI Agents to deploy apps and infra, to any cloud.
MCP-ABI
Interact with Ethereum-compatible smart contracts using their ABI.
Ruby MCP Client
A Ruby client for the Model Context Protocol (MCP), enabling integration with external tools and services via a standardized protocol.
FastMCP ThreatIntel
An AI-powered threat intelligence analysis tool for multi-source IOC analysis, APT attribution, and interactive reporting.
Shallow Research Code Assistant
A multi-agent AI-powered research and code assistant. Requires external API keys for LLM providers, web search, and secure code execution.
Background Process MCP
A server that provides background process management capabilities, enabling LLMs to start, stop, and monitor long-running command-line processes.
Code Analysis MCP Server
A modular MCP server for code analysis, supporting file operations, code search, and structure analysis.
Deepseek Thinker
Provides Deepseek's reasoning capabilities to AI clients, supporting both the Deepseek API and local Ollama server modes.
Interactive Feedback MCP
An MCP server for AI-assisted development tools like Cursor and Claude, supporting interactive feedback workflows with AI.
Grumpy Senior Developer
Provides sarcastic and cynical code reviews from the perspective of a grumpy senior developer.