{"type":"mcp_server","name":"python-sdk","description":"This repository provides a Python implementation of the Model Context Protocol (MCP), offering tools and resources for building servers, managing context, and integrating with applications like Claude. It simplifies interaction","category":"Developer Tools","language":"Python","stars":23428,"forks":591,"owner":"modelcontextprotocol","github_url":"https://github.com/modelcontextprotocol/python-sdk","homepage":"https://modelcontextprotocol.io","setup":"## Setup\n\n1.  **Adding MCP to your python project:** We recommend using [uv](https://docs.astral.sh/uv/) to manage your Python projects, add mcp to dependencies by `uv add \"mcp[cli]\"` or using pip for dependencies: `pip install mcp`.\n2.  **Running the standalone MCP development tools:** To run the mcp command with uv: `uv run mcp`.","tools":"## Available Tools\n\n1.  **MCP Server:** Build MCP servers that expose resources, prompts and tools.\n2.  **MCP Client:** Build MCP clients that can connect to any MCP server.\n3.  **Resources:** Expose data to LLMs, similar to GET endpoints in a REST API.\n4.  **Tools:** Let LLMs take actions through your server, expected to perform computation and have side effects.\n5.  **Prompts:** Reusable templates that help LLMs interact with your server effectively.\n6.  **Images:** Handle image data using the `Image` class.\n7.  **Context:** Access MCP capabilities through the Context object in tools and resources.\n8.  **MCP Inspector:** Test and debug your server in development mode.\n","faq":null,"created_at":"2024-09-24T21:01:35+00:00","updated_at":"2025-07-07T15:27:02+00:00","source_url":"https://model-context-protocol.com/servers/python-sdk-model-context-protocol-integration","related_articles":[{"title":"Building with python-sdk: Developer's Guide","url":"https://model-context-protocol.com/blog/python-sdk-guide"}]}