ClaudeCodeMod

All shelves / MCP servers

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.

Open the repo

Files

README.md

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:

  1. search_hackernews - Search HackerNews stories
  2. get_github_repo_info - Get GitHub repository details
  3. get_server_roots - List available sampling roots
  4. get_server_prompts - List prompt templates

Enhanced Sampling Tools:

  1. create_sampling_request - Create MCP sampling requests with model preferences
  • Supports: model hints, intelligence/cost/speed priorities, context data
  1. analyze_hackernews_trends_with_ai - AI trend analysis
  2. code_review_with_ai - AI-powered code review
  3. request_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 repositories
  • github://trending/javascript/weekly - JavaScript trending repositories

Sampling Resources:

  • sampling://random/5 - Random sampling strategies
  • sampling://sequential/3 - Sequential sampling
  • sampling://distribution/10 - Distribution-based sampling
  • sampling://repositories/python/3 - Repository sampling
  • sampling://hackernews/5 - HackerNews story sampling
  • sampling://ai-analysis/hackernews/topic=AI&count=3 - AI analysis sampling

Status & Analysis Resources:

  • status://server - Server status monitoring
  • status://resources - Resource availability
  • roots:// - Available roots listing
  • analysis://hackernews/AI/5 - HackerNews AI analysis
  • analysis://github/microsoft/vscode - GitHub repository analysis
  1. analyze_tech_trends - Technology trend analysis
  • Variants: AI (Default), Blockchain (Weekly), Cloud Computing (Brief)
  1. project_research - Project development research
  • Variants: Web App, Mobile App (React Native), API (FastAPI)
  1. competitive_analysis - Market competitive analysis
  • Variants: AI Tools, Web Frameworks (Comprehensive)
  1. learning_roadmap - Skill development roadmaps
  • Variants: Python, Machine Learning (Advanced), DevOps (Intermediate)
  1. 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

More on this shelf

  1. 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
  2. 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
  3. 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
  4. 4Memorymodelcontextprotocol/serversA basic implementation of persistent memory using a local knowledge graph. This lets Claude remember information about the user across chats.85.8k
  5. 5Sequential Thinkingmodelcontextprotocol/serversAn MCP server implementation that provides a tool for dynamic and reflective problem-solving through a structured thinking process.85.8k
  6. 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