Python Tutorial
Createdjhj0517
Provides a tutorial app for Model Context Protocol (MCP) in Python, demonstrating core MCP concepts with a simple local database.
About
This tutorial application showcases fundamental Model Context Protocol (MCP) concepts using Python and a lightweight local database. It provides practical examples of `@mcp.resource`, `@mcp.tool`, and `@mcp.prompt` annotations for building intelligent agents. The tutorial guides users through setting up an MCP server, connecting it to a client like Claude Desktop, and exploring various functionalities such as retrieving user profiles, creating posts, and generating content analysis.
Key Features
- Provides instructions for connecting to Claude Desktop as a client
- Includes a simple local database with mocking data
- Supports running MCP server in dev mode
- Demonstrates @mcp.resource, @mcp.tool, and @mcp.prompt annotations
- Offers examples for getting resources, generating new resources, and using reusable prompt templates
- 0 GitHub stars
Use Cases
- Learning MCP concepts and implementation in Python
- Prototyping MCP-driven applications with local databases
- Building an agent leveraging MCP with Claude Desktop