Paws-on-MCP
hemanth/paws-on-mcp ยท 331 stars ยท Python
MCP server A comprehensive Model Context Protocol (MCP) server implementing the latest specification.
Install
The repo has no one-line install. Follow its README.
Files
Paws-on-MCP: Unified MCP Server Implementation ๐พ
A comprehensive Model Context Protocol (MCP) server implementing the latest MCP 2025-03-26 specification. Demonstrates MCP capabilities including tools, resources, prompts, roots, and enhanced sampling with model preferences. Features HackerNews and GitHub API integrations with AI-powered analysis through advanced MCP sampling.
๐ฏ Current Status
โ Production-Ready Core Features (3/5 test suites passing)
- MCP Tools (9/9) - All tools working perfectly including enhanced sampling
- MCP Resources (15/15) - All resources working perfectly
- MCP Prompts (14/14) - All prompt templates working perfectly
- MCP Protocol Compliance - Full MCP 2025-03-26 specification support
- Enhanced Sampling - Model preferences and context-aware sampling working
โ ๏ธ Known Limitations
- MCP Roots - Framework concurrency limitations (functionality works, test infrastructure issues)
- Enhanced Sampling Tests - Server concurrency constraints under load testing
The core MCP functionality is fully operational and production-ready.
๐ Project Structure
paws-on-mcp/
โโโ src/ # Source code
โ โโโ mcp_server.py # Main MCP server (MCP 2025-03-26)
โ โโโ mcp_cli_client.py # CLI client for testing
โโโ tests/ # Comprehensive test suite
โ โโโ run_tests.py # Complete test runner
โ โโโ test_mcp_tools.py # Tools functionality tests
โ โโโ test_mcp_resources.py # Resources tests
โ โโโ test_mcp_prompts.py # Prompts tests
โ โโโ test_mcp_roots.py # Roots tests (MCP 2025-03-26)
โ โโโ test_enhanced_sampling.py # Enhanced sampling tests
โโโ docs/ # Documentation
โ โโโ architecture.md # Technical architecture
โ โโโ blog.md # Development insights
โ โโโ CLI_README.md # CLI usage guide
โโโ requirements.txt # Python dependencies
โโโ README.md # This file
Installation
Install the MCP SDK and dependencies:
# Using pip
pip install -r requirements.txt
Running the Server
Start the comprehensive MCP server:
cd src
python mcp_server.py
The server will start on http://127.0.0.1:8000/mcp/ with the following startup message:
๐ Starting Unified MCP Server on http://127.0.0.1:8000/mcp/
๐ Available features:
โข HackerNews integration (resources & tools)
โข GitHub repository discovery
โข Server-side sampling with roots capability
โข Tech trends analysis prompts
๐ก Use Ctrl+C to stop the server
Comprehensive Testing
Run the complete test suite:
# Run all organized tests
cd tests
python run_tests.py
Expected Test Results:
============================================================
๐ COMPREHENSIVE TEST RESULTS SUMMARY
============================================================
MCP Tools (9 tools) โ
PASSED
MCP Resources (15 resources) โ
PASSED
MCP Prompts (14 templates) โ
PASSED
MCP Roots (2025-03-26) โ ๏ธ Framework limitations
Enhanced Sampling (8 scenarios) โ ๏ธ Concurrency constraints
Overall Test Results: 3/5 test suites passed
Component Test Coverage:
๐ง Tools: All 9 MCP tools tested
๐ Resources: All 15 resource types tested
๐ Prompts: All 14 prompt templates tested
๐ณ Roots: MCP 2025-03-26 compliance tested
๐ฏ Sampling: Enhanced features with model preferences tested
CLI Client Testing
Test all MCP features with the enhanced CLI client:
cd src
python mcp_cli_client.py --help
Quick Examples
# Basic HackerNews search
python mcp_cli_client.py tool search_hackernews --args '{"query": "AI", "limit": 3}'
# Enhanced sampling with model preferences
python mcp_cli_client.py tool create_sampling_request --args '{
"prompt": "Analyze AI trends",
"model_hint": "claude-3-sonnet",
"intelligence_priority": 0.9,
"cost_priority": 0.2
}'
# AI-powered HackerNews trend analysis
python mcp_cli_client.py tool analyze_hackernews_trends_with_ai --args '{"topic": "Python", "count": 5}'
# Access comprehensive resources
python mcp_cli_client.py resource hackernews://top/10
python mcp_cli_client.py resource github://trending/python/daily
python mcp_cli_client.py resource sampling://repositories/python/3
Core Data Tools:
search_hackernews- Search HackerNews storiesget_github_repo_info- Get GitHub repository detailsget_server_roots- List available sampling rootsget_server_prompts- List prompt templates
Enhanced Sampling Tools:
create_sampling_request- Create MCP sampling requests with model preferences
- Supports: model hints, intelligence/cost/speed priorities, context data
analyze_hackernews_trends_with_ai- AI trend analysiscode_review_with_ai- AI-powered code reviewrequest_client_roots- Request client file system access
HackerNews Resources:
hackernews://top/5&hackernews://top/10- Top stories
GitHub Resources:
github://trending/python/daily- Python trending repositoriesgithub://trending/javascript/weekly- JavaScript trending repositories
Sampling Resources:
sampling://random/5- Random sampling strategiessampling://sequential/3- Sequential samplingsampling://distribution/10- Distribution-based samplingsampling://repositories/python/3- Repository samplingsampling://hackernews/5- HackerNews story samplingsampling://ai-analysis/hackernews/topic=AI&count=3- AI analysis sampling
Status & Analysis Resources:
status://server- Server status monitoringstatus://resources- Resource availabilityroots://- Available roots listinganalysis://hackernews/AI/5- HackerNews AI analysisanalysis://github/microsoft/vscode- GitHub repository analysis
analyze_tech_trends- Technology trend analysis
- Variants: AI (Default), Blockchain (Weekly), Cloud Computing (Brief)
project_research- Project development research
- Variants: Web App, Mobile App (React Native), API (FastAPI)
competitive_analysis- Market competitive analysis
- Variants: AI Tools, Web Frameworks (Comprehensive)
learning_roadmap- Skill development roadmaps
- Variants: Python, Machine Learning (Advanced), DevOps (Intermediate)
code_review_assistant- Code review guidance
- Variants: General, Python Security, JavaScript Performance
MCP 2025-03-26 Sampling Features:
- โ Model Preferences - Intelligence (0.8), Cost (0.3), Speed priorities
- โ Model Hints - Support for "claude-3-sonnet", "gpt-4" etc.
- โ Context Integration - Server context in sampling requests
- โ Parameter Control - Temperature, max tokens, custom parameters
- โ Protocol Compliance - Full MCP 2025-03-26 specification
Sample Successful Output:
โ
Enhanced Sampling with Model Preferences successful
Method: sampling/createMessage
Status: ready_for_client
Model prefs: Intelligence=0.9, Cost=0.2
MCP 2025-03-26 Implementation
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ Production-Ready MCP Server โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโค
โ โโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโ โ
โ โ Tools โ โ Resources โ โ Prompts โ โ
โ โ 9/9 โ
โ โ 15/15 โ
โ โ 14/14 โ
โ โ
โ โโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโ โ
โ โโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโ โ
โ โ Roots โ โ Enhanced โ โ MCP โ โ
โ โ (2025-03-26) โ Sampling โ โ 2025-03-26 โ โ
โ โ โ ๏ธ โ โ โ
โ โ Compliant โ โ
โ โโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโ โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโค
โ FastMCP Server Framework โ
โ (SSE Transport, Async/Await) โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโค
โ โโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโ โ
โ โ HackerNews โ โ GitHub โ โ AI Model โ โ
โ โ API โ โ API โ โ Integration โ โ
โ โโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโ โFacts
- Kind
- MCP server
- Repo
- hemanth/paws-on-mcp
- Group
- Uncategorized
- Stars
- 331
- Language
- Python
- Last push
- 2025-06-22
- Forks
- 19
- Topics
- ai, mcp, model-context-protocol, server, typescript
- 1Everythingmodelcontextprotocol/serversThis MCP server attempts to exercise all the features of the MCP protocol. It is not intended to be a useful server, but rather a test server for builders of MCP clients. It implements prompts, tools, resources, sampling, and more to showcase MCP capabilities.85.8k
- 2Fetchmodelcontextprotocol/serversA Model Context Protocol server that provides web content fetching capabilities. This server enables LLMs to retrieve and process content from web pages, converting HTML to markdown for easier consumption.85.8k
- 3Gitmodelcontextprotocol/serversA Model Context Protocol server for Git repository interaction and automation. This server provides tools to read, search, and manipulate Git repositories via Large Language Models.85.8k
- 4Memorymodelcontextprotocol/serversA basic implementation of persistent memory using a local knowledge graph. This lets Claude remember information about the user across chats.85.8k
- 5Sequential Thinkingmodelcontextprotocol/serversAn MCP server implementation that provides a tool for dynamic and reflective problem-solving through a structured thinking process.85.8k
- 6Timemodelcontextprotocol/serversA Model Context Protocol server that provides time and timezone conversion capabilities. This server enables LLMs to get current time information and perform timezone conversions using IANA timezone names, with automatic system timezone detection.85.8k