Weather Demo icon

Weather Demo

Provides a reference implementation for protecting Model Context Protocol (MCP) tools, resources, and prompts with a paywall using Nevermined's Python SDK.

概要

This repository serves as a crucial reference and demonstration project designed to validate and test the integration of the Model Context Protocol (MCP) within Nevermined's Python SDK, `payments-py`. It specifically illustrates how to implement robust paywall protection for MCP tools, resources, and prompts, offering examples for both High-Level (FastMCP) and Low-Level JSON-RPC server configurations. Intended for local experimentation, integration tests, and showcasing capabilities, it highlights the process of securing access and burning credits for MCP interactions.

主な機能

  • 6 GitHub stars
  • Exposes a sample `weather.today(city)` tool and related resource
  • Demonstrates paywall protection for MCP tools, resources, and prompts
  • Supports dynamic credit burning based on usage
  • Integrates Nevermined Payments for access control and credit burning
  • Offers High-Level (FastMCP) and Low-Level server implementations

ユースケース

  • Providing a reference implementation for `payments-py` SDK integration
  • Testing and validating Model Context Protocol (MCP) integration with Nevermined payments
  • Showcasing how to protect API endpoints and resources with a paywall
Advertisement

Advertisement