René's URL Explorer Experiment


Title: GitHub - modelcontextprotocol/python-sdk at mrtr-draft · GitHub

Open Graph Title: GitHub - modelcontextprotocol/python-sdk at mrtr-draft

X Title: GitHub - modelcontextprotocol/python-sdk at mrtr-draft

Description: The official Python SDK for Model Context Protocol servers and clients - GitHub - modelcontextprotocol/python-sdk at mrtr-draft

Open Graph Description: The official Python SDK for Model Context Protocol servers and clients - modelcontextprotocol/python-sdk

X Description: The official Python SDK for Model Context Protocol servers and clients - modelcontextprotocol/python-sdk

Opengraph URL: https://github.com/modelcontextprotocol/python-sdk/tree/mrtr-draft

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/tree/*name(/*path)
route-controllerfiles
route-actiondisambiguate
fetch-noncev2:a8846ff2-b197-5b8a-6ac1-998712b94dca
current-catalog-service-hashf3abb0cc802f3d7b95fc8762b94bdcb13bf39634c40c357301c4aa1d67a256fb
request-idCA0E:162C5F:2D0AEC6:3FED0BC:6A590ABD
html-safe-noncee81fa4d748d764c587693b02cb4950cdf49b2747838e647239753cbd094bd456
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDQTBFOjE2MkM1RjoyRDBBRUM2OjNGRUQwQkM6NkE1OTBBQkQiLCJ2aXNpdG9yX2lkIjoiMzM5MTk4NDgxMzYwMzM1OTQyMSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac9095ad22294367934e700758ea9bf9916a5da62ef13bd16a1911d88fefd92f00
hovercard-subject-tagrepository:862584018
github-keyboard-shortcutsrepository,source-code,file-tree,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///files/disambiguate
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/modelcontextprotocol/python-sdk/tree/mrtr-draft
twitter:imagehttps://opengraph.githubassets.com/bd8db986d41030054cbb699931e6913f459d7de9cb0bffc3aa6f32916decd512/modelcontextprotocol/python-sdk
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/bd8db986d41030054cbb699931e6913f459d7de9cb0bffc3aa6f32916decd512/modelcontextprotocol/python-sdk
og:image:altThe official Python SDK for Model Context Protocol servers and clients - modelcontextprotocol/python-sdk
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None4eb8ea312922ccce63e833964f9606d971cffb2d5b6c10a62c4a7dcc48d826e2
turbo-cache-controlno-cache
go-importgithub.com/modelcontextprotocol/python-sdk git https://github.com/modelcontextprotocol/python-sdk.git
octolytics-dimension-user_id182288589
octolytics-dimension-user_loginmodelcontextprotocol
octolytics-dimension-repository_id862584018
octolytics-dimension-repository_nwomodelcontextprotocol/python-sdk
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id862584018
octolytics-dimension-repository_network_root_nwomodelcontextprotocol/python-sdk
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release886a6c6fbce3d3caad5b3b995ef09ff6ca23f10e
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/modelcontextprotocol/python-sdk/tree/mrtr-draft#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmodelcontextprotocol%2Fpython-sdk%2Ftree%2Fmrtr-draft
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmodelcontextprotocol%2Fpython-sdk%2Ftree%2Fmrtr-draft
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Ffiles%2Fdisambiguate&source=header-repo&source_repo=modelcontextprotocol%2Fpython-sdk
Reloadhttps://github.com/modelcontextprotocol/python-sdk/tree/mrtr-draft
Reloadhttps://github.com/modelcontextprotocol/python-sdk/tree/mrtr-draft
Reloadhttps://github.com/modelcontextprotocol/python-sdk/tree/mrtr-draft
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/tree/mrtr-draft
modelcontextprotocol https://github.com/modelcontextprotocol
python-sdkhttps://github.com/modelcontextprotocol/python-sdk
Notifications https://github.com/login?return_to=%2Fmodelcontextprotocol%2Fpython-sdk
Fork 3.7k https://github.com/login?return_to=%2Fmodelcontextprotocol%2Fpython-sdk
Star 23.6k https://github.com/login?return_to=%2Fmodelcontextprotocol%2Fpython-sdk
Code https://github.com/modelcontextprotocol/python-sdk/tree/mrtr-draft
Issues 255 https://github.com/modelcontextprotocol/python-sdk/issues
Pull requests 293 https://github.com/modelcontextprotocol/python-sdk/pulls
Actions https://github.com/modelcontextprotocol/python-sdk/actions
Projects https://github.com/modelcontextprotocol/python-sdk/projects
Models https://github.com/modelcontextprotocol/python-sdk/models
Security and quality 6 https://github.com/modelcontextprotocol/python-sdk/security
Insights https://github.com/modelcontextprotocol/python-sdk/pulse
Code https://github.com/modelcontextprotocol/python-sdk/tree/mrtr-draft
Issues https://github.com/modelcontextprotocol/python-sdk/issues
Pull requests https://github.com/modelcontextprotocol/python-sdk/pulls
Actions https://github.com/modelcontextprotocol/python-sdk/actions
Projects https://github.com/modelcontextprotocol/python-sdk/projects
Models https://github.com/modelcontextprotocol/python-sdk/models
Security and quality https://github.com/modelcontextprotocol/python-sdk/security
Insights https://github.com/modelcontextprotocol/python-sdk/pulse
https://github.com/modelcontextprotocol/python-sdk
Brancheshttps://github.com/modelcontextprotocol/python-sdk/branches
Tagshttps://github.com/modelcontextprotocol/python-sdk/tags
https://github.com/modelcontextprotocol/python-sdk/branches
https://github.com/modelcontextprotocol/python-sdk/tags
839 Commitshttps://github.com/modelcontextprotocol/python-sdk/commits/mrtr-draft/
https://github.com/modelcontextprotocol/python-sdk/commits/mrtr-draft/
.claude/commandshttps://github.com/modelcontextprotocol/python-sdk/tree/mrtr-draft/.claude/commands
.claude/commandshttps://github.com/modelcontextprotocol/python-sdk/tree/mrtr-draft/.claude/commands
.githubhttps://github.com/modelcontextprotocol/python-sdk/tree/mrtr-draft/.github
.githubhttps://github.com/modelcontextprotocol/python-sdk/tree/mrtr-draft/.github
docshttps://github.com/modelcontextprotocol/python-sdk/tree/mrtr-draft/docs
docshttps://github.com/modelcontextprotocol/python-sdk/tree/mrtr-draft/docs
exampleshttps://github.com/modelcontextprotocol/python-sdk/tree/mrtr-draft/examples
exampleshttps://github.com/modelcontextprotocol/python-sdk/tree/mrtr-draft/examples
scriptshttps://github.com/modelcontextprotocol/python-sdk/tree/mrtr-draft/scripts
scriptshttps://github.com/modelcontextprotocol/python-sdk/tree/mrtr-draft/scripts
src/mcphttps://github.com/modelcontextprotocol/python-sdk/tree/mrtr-draft/src/mcp
src/mcphttps://github.com/modelcontextprotocol/python-sdk/tree/mrtr-draft/src/mcp
testshttps://github.com/modelcontextprotocol/python-sdk/tree/mrtr-draft/tests
testshttps://github.com/modelcontextprotocol/python-sdk/tree/mrtr-draft/tests
.git-blame-ignore-revshttps://github.com/modelcontextprotocol/python-sdk/blob/mrtr-draft/.git-blame-ignore-revs
.git-blame-ignore-revshttps://github.com/modelcontextprotocol/python-sdk/blob/mrtr-draft/.git-blame-ignore-revs
.gitattributehttps://github.com/modelcontextprotocol/python-sdk/blob/mrtr-draft/.gitattribute
.gitattributehttps://github.com/modelcontextprotocol/python-sdk/blob/mrtr-draft/.gitattribute
.gitignorehttps://github.com/modelcontextprotocol/python-sdk/blob/mrtr-draft/.gitignore
.gitignorehttps://github.com/modelcontextprotocol/python-sdk/blob/mrtr-draft/.gitignore
.pre-commit-config.yamlhttps://github.com/modelcontextprotocol/python-sdk/blob/mrtr-draft/.pre-commit-config.yaml
.pre-commit-config.yamlhttps://github.com/modelcontextprotocol/python-sdk/blob/mrtr-draft/.pre-commit-config.yaml
CLAUDE.mdhttps://github.com/modelcontextprotocol/python-sdk/blob/mrtr-draft/CLAUDE.md
CLAUDE.mdhttps://github.com/modelcontextprotocol/python-sdk/blob/mrtr-draft/CLAUDE.md
CODE_OF_CONDUCT.mdhttps://github.com/modelcontextprotocol/python-sdk/blob/mrtr-draft/CODE_OF_CONDUCT.md
CODE_OF_CONDUCT.mdhttps://github.com/modelcontextprotocol/python-sdk/blob/mrtr-draft/CODE_OF_CONDUCT.md
CONTRIBUTING.mdhttps://github.com/modelcontextprotocol/python-sdk/blob/mrtr-draft/CONTRIBUTING.md
CONTRIBUTING.mdhttps://github.com/modelcontextprotocol/python-sdk/blob/mrtr-draft/CONTRIBUTING.md
LICENSEhttps://github.com/modelcontextprotocol/python-sdk/blob/mrtr-draft/LICENSE
LICENSEhttps://github.com/modelcontextprotocol/python-sdk/blob/mrtr-draft/LICENSE
README.mdhttps://github.com/modelcontextprotocol/python-sdk/blob/mrtr-draft/README.md
README.mdhttps://github.com/modelcontextprotocol/python-sdk/blob/mrtr-draft/README.md
README.v2.mdhttps://github.com/modelcontextprotocol/python-sdk/blob/mrtr-draft/README.v2.md
README.v2.mdhttps://github.com/modelcontextprotocol/python-sdk/blob/mrtr-draft/README.v2.md
RELEASE.mdhttps://github.com/modelcontextprotocol/python-sdk/blob/mrtr-draft/RELEASE.md
RELEASE.mdhttps://github.com/modelcontextprotocol/python-sdk/blob/mrtr-draft/RELEASE.md
SECURITY.mdhttps://github.com/modelcontextprotocol/python-sdk/blob/mrtr-draft/SECURITY.md
SECURITY.mdhttps://github.com/modelcontextprotocol/python-sdk/blob/mrtr-draft/SECURITY.md
mkdocs.ymlhttps://github.com/modelcontextprotocol/python-sdk/blob/mrtr-draft/mkdocs.yml
mkdocs.ymlhttps://github.com/modelcontextprotocol/python-sdk/blob/mrtr-draft/mkdocs.yml
pyproject.tomlhttps://github.com/modelcontextprotocol/python-sdk/blob/mrtr-draft/pyproject.toml
pyproject.tomlhttps://github.com/modelcontextprotocol/python-sdk/blob/mrtr-draft/pyproject.toml
uv.lockhttps://github.com/modelcontextprotocol/python-sdk/blob/mrtr-draft/uv.lock
uv.lockhttps://github.com/modelcontextprotocol/python-sdk/blob/mrtr-draft/uv.lock
READMEhttps://github.com/modelcontextprotocol/python-sdk/tree/mrtr-draft
Code of conducthttps://github.com/modelcontextprotocol/python-sdk/tree/mrtr-draft
Contributinghttps://github.com/modelcontextprotocol/python-sdk/tree/mrtr-draft
Licensehttps://github.com/modelcontextprotocol/python-sdk/tree/mrtr-draft
Securityhttps://github.com/modelcontextprotocol/python-sdk/tree/mrtr-draft
https://github.com/modelcontextprotocol/python-sdk/tree/mrtr-draft#mcp-python-sdk
https://pypi.org/project/mcp/
https://github.com/modelcontextprotocol/python-sdk/blob/main/LICENSE
https://www.python.org/downloads/
https://modelcontextprotocol.github.io/python-sdk/
https://modelcontextprotocol.io
https://modelcontextprotocol.io/specification/latest
v1.x branchhttps://github.com/modelcontextprotocol/python-sdk/tree/v1.x
README.v2.mdhttps://github.com/modelcontextprotocol/python-sdk/blob/mrtr-draft/README.v2.md
https://github.com/modelcontextprotocol/python-sdk/tree/mrtr-draft#table-of-contents
MCP Python SDKhttps://github.com/modelcontextprotocol/python-sdk/tree/mrtr-draft#mcp-python-sdk
Overviewhttps://github.com/modelcontextprotocol/python-sdk/tree/mrtr-draft#overview
Installationhttps://github.com/modelcontextprotocol/python-sdk/tree/mrtr-draft#installation
Adding MCP to your python projecthttps://github.com/modelcontextprotocol/python-sdk/tree/mrtr-draft#adding-mcp-to-your-python-project
Running the standalone MCP development toolshttps://github.com/modelcontextprotocol/python-sdk/tree/mrtr-draft#running-the-standalone-mcp-development-tools
Quickstarthttps://github.com/modelcontextprotocol/python-sdk/tree/mrtr-draft#quickstart
What is MCP?https://github.com/modelcontextprotocol/python-sdk/tree/mrtr-draft#what-is-mcp
Core Conceptshttps://github.com/modelcontextprotocol/python-sdk/tree/mrtr-draft#core-concepts
Serverhttps://github.com/modelcontextprotocol/python-sdk/tree/mrtr-draft#server
Resourceshttps://github.com/modelcontextprotocol/python-sdk/tree/mrtr-draft#resources
Toolshttps://github.com/modelcontextprotocol/python-sdk/tree/mrtr-draft#tools
Structured Outputhttps://github.com/modelcontextprotocol/python-sdk/tree/mrtr-draft#structured-output
Promptshttps://github.com/modelcontextprotocol/python-sdk/tree/mrtr-draft#prompts
Imageshttps://github.com/modelcontextprotocol/python-sdk/tree/mrtr-draft#images
Contexthttps://github.com/modelcontextprotocol/python-sdk/tree/mrtr-draft#context
Getting Context in Functionshttps://github.com/modelcontextprotocol/python-sdk/tree/mrtr-draft#getting-context-in-functions
Context Properties and Methodshttps://github.com/modelcontextprotocol/python-sdk/tree/mrtr-draft#context-properties-and-methods
Completionshttps://github.com/modelcontextprotocol/python-sdk/tree/mrtr-draft#completions
Elicitationhttps://github.com/modelcontextprotocol/python-sdk/tree/mrtr-draft#elicitation
Samplinghttps://github.com/modelcontextprotocol/python-sdk/tree/mrtr-draft#sampling
Logging and Notificationshttps://github.com/modelcontextprotocol/python-sdk/tree/mrtr-draft#logging-and-notifications
Authenticationhttps://github.com/modelcontextprotocol/python-sdk/tree/mrtr-draft#authentication
FastMCP Propertieshttps://github.com/modelcontextprotocol/python-sdk/tree/mrtr-draft#fastmcp-properties
Session Properties and Methodshttps://github.com/modelcontextprotocol/python-sdk/tree/mrtr-draft#session-properties-and-methods
Request Context Propertieshttps://github.com/modelcontextprotocol/python-sdk/tree/mrtr-draft#request-context-properties
Running Your Serverhttps://github.com/modelcontextprotocol/python-sdk/tree/mrtr-draft#running-your-server
Development Modehttps://github.com/modelcontextprotocol/python-sdk/tree/mrtr-draft#development-mode
Claude Desktop Integrationhttps://github.com/modelcontextprotocol/python-sdk/tree/mrtr-draft#claude-desktop-integration
Direct Executionhttps://github.com/modelcontextprotocol/python-sdk/tree/mrtr-draft#direct-execution
Streamable HTTP Transporthttps://github.com/modelcontextprotocol/python-sdk/tree/mrtr-draft#streamable-http-transport
CORS Configuration for Browser-Based Clientshttps://github.com/modelcontextprotocol/python-sdk/tree/mrtr-draft#cors-configuration-for-browser-based-clients
Mounting to an Existing ASGI Serverhttps://github.com/modelcontextprotocol/python-sdk/tree/mrtr-draft#mounting-to-an-existing-asgi-server
StreamableHTTP servershttps://github.com/modelcontextprotocol/python-sdk/tree/mrtr-draft#streamablehttp-servers
Basic mountinghttps://github.com/modelcontextprotocol/python-sdk/tree/mrtr-draft#basic-mounting
Host-based routinghttps://github.com/modelcontextprotocol/python-sdk/tree/mrtr-draft#host-based-routing
Multiple servers with path configurationhttps://github.com/modelcontextprotocol/python-sdk/tree/mrtr-draft#multiple-servers-with-path-configuration
Path configuration at initializationhttps://github.com/modelcontextprotocol/python-sdk/tree/mrtr-draft#path-configuration-at-initialization
SSE servershttps://github.com/modelcontextprotocol/python-sdk/tree/mrtr-draft#sse-servers
Advanced Usagehttps://github.com/modelcontextprotocol/python-sdk/tree/mrtr-draft#advanced-usage
Low-Level Serverhttps://github.com/modelcontextprotocol/python-sdk/tree/mrtr-draft#low-level-server
Structured Output Supporthttps://github.com/modelcontextprotocol/python-sdk/tree/mrtr-draft#structured-output-support
Pagination (Advanced)https://github.com/modelcontextprotocol/python-sdk/tree/mrtr-draft#pagination-advanced
Writing MCP Clientshttps://github.com/modelcontextprotocol/python-sdk/tree/mrtr-draft#writing-mcp-clients
Client Display Utilitieshttps://github.com/modelcontextprotocol/python-sdk/tree/mrtr-draft#client-display-utilities
OAuth Authentication for Clientshttps://github.com/modelcontextprotocol/python-sdk/tree/mrtr-draft#oauth-authentication-for-clients
Parsing Tool Resultshttps://github.com/modelcontextprotocol/python-sdk/tree/mrtr-draft#parsing-tool-results
MCP Primitiveshttps://github.com/modelcontextprotocol/python-sdk/tree/mrtr-draft#mcp-primitives
Server Capabilitieshttps://github.com/modelcontextprotocol/python-sdk/tree/mrtr-draft#server-capabilities
Documentationhttps://github.com/modelcontextprotocol/python-sdk/tree/mrtr-draft#documentation
Contributinghttps://github.com/modelcontextprotocol/python-sdk/tree/mrtr-draft#contributing
Licensehttps://github.com/modelcontextprotocol/python-sdk/tree/mrtr-draft#license
https://github.com/modelcontextprotocol/python-sdk/tree/mrtr-draft#overview
https://github.com/modelcontextprotocol/python-sdk/tree/mrtr-draft#installation
https://github.com/modelcontextprotocol/python-sdk/tree/mrtr-draft#adding-mcp-to-your-python-project
uvhttps://docs.astral.sh/uv/
https://github.com/modelcontextprotocol/python-sdk/tree/mrtr-draft#running-the-standalone-mcp-development-tools
https://github.com/modelcontextprotocol/python-sdk/tree/mrtr-draft#quickstart
examples/snippets/servers/fastmcp_quickstart.pyhttps://github.com/modelcontextprotocol/python-sdk/blob/main/examples/snippets/servers/fastmcp_quickstart.py
Claude Codehttps://docs.claude.com/en/docs/claude-code/mcp
https://github.com/modelcontextprotocol/python-sdk/tree/mrtr-draft#what-is-mcp
Model Context Protocol (MCP)https://modelcontextprotocol.io
https://github.com/modelcontextprotocol/python-sdk/tree/mrtr-draft#core-concepts
https://github.com/modelcontextprotocol/python-sdk/tree/mrtr-draft#server
examples/snippets/servers/lifespan_example.pyhttps://github.com/modelcontextprotocol/python-sdk/blob/main/examples/snippets/servers/lifespan_example.py
https://github.com/modelcontextprotocol/python-sdk/tree/mrtr-draft#resources
examples/snippets/servers/basic_resource.pyhttps://github.com/modelcontextprotocol/python-sdk/blob/main/examples/snippets/servers/basic_resource.py
https://github.com/modelcontextprotocol/python-sdk/tree/mrtr-draft#tools
examples/snippets/servers/basic_tool.pyhttps://github.com/modelcontextprotocol/python-sdk/blob/main/examples/snippets/servers/basic_tool.py
examples/snippets/servers/tool_progress.pyhttps://github.com/modelcontextprotocol/python-sdk/blob/main/examples/snippets/servers/tool_progress.py
https://github.com/modelcontextprotocol/python-sdk/tree/mrtr-draft#structured-output
https://github.com/modelcontextprotocol/python-sdk/tree/mrtr-draft#advanced-direct-calltoolresult
examples/snippets/servers/direct_call_tool_result.pyhttps://github.com/modelcontextprotocol/python-sdk/blob/main/examples/snippets/servers/direct_call_tool_result.py
examples/snippets/servers/structured_output.pyhttps://github.com/modelcontextprotocol/python-sdk/blob/main/examples/snippets/servers/structured_output.py
https://github.com/modelcontextprotocol/python-sdk/tree/mrtr-draft#prompts
examples/snippets/servers/basic_prompt.pyhttps://github.com/modelcontextprotocol/python-sdk/blob/main/examples/snippets/servers/basic_prompt.py
https://github.com/modelcontextprotocol/python-sdk/tree/mrtr-draft#icons
examples/fastmcp/icons_demo.pyhttps://github.com/modelcontextprotocol/python-sdk/blob/main/examples/fastmcp/icons_demo.py
https://github.com/modelcontextprotocol/python-sdk/tree/mrtr-draft#images
examples/snippets/servers/images.pyhttps://github.com/modelcontextprotocol/python-sdk/blob/main/examples/snippets/servers/images.py
https://github.com/modelcontextprotocol/python-sdk/tree/mrtr-draft#context
https://github.com/modelcontextprotocol/python-sdk/tree/mrtr-draft#getting-context-in-functions
https://github.com/modelcontextprotocol/python-sdk/tree/mrtr-draft#context-properties-and-methods
FastMCP Propertieshttps://github.com/modelcontextprotocol/python-sdk/tree/mrtr-draft#fastmcp-properties
Session Properties and Methodshttps://github.com/modelcontextprotocol/python-sdk/tree/mrtr-draft#session-properties-and-methods
Request Context Propertieshttps://github.com/modelcontextprotocol/python-sdk/tree/mrtr-draft#request-context-properties
examples/snippets/servers/tool_progress.pyhttps://github.com/modelcontextprotocol/python-sdk/blob/main/examples/snippets/servers/tool_progress.py
https://github.com/modelcontextprotocol/python-sdk/tree/mrtr-draft#completions
examples/snippets/clients/completion_client.pyhttps://github.com/modelcontextprotocol/python-sdk/blob/main/examples/snippets/clients/completion_client.py
https://github.com/modelcontextprotocol/python-sdk/tree/mrtr-draft#elicitation
examples/snippets/servers/elicitation.pyhttps://github.com/modelcontextprotocol/python-sdk/blob/main/examples/snippets/servers/elicitation.py
https://github.com/modelcontextprotocol/python-sdk/tree/mrtr-draft#sampling
examples/snippets/servers/sampling.pyhttps://github.com/modelcontextprotocol/python-sdk/blob/main/examples/snippets/servers/sampling.py
https://github.com/modelcontextprotocol/python-sdk/tree/mrtr-draft#logging-and-notifications
examples/snippets/servers/notifications.pyhttps://github.com/modelcontextprotocol/python-sdk/blob/main/examples/snippets/servers/notifications.py
https://github.com/modelcontextprotocol/python-sdk/tree/mrtr-draft#authentication
MCP authorization specificationhttps://modelcontextprotocol.io/specification/2025-06-18/basic/authorization
examples/snippets/servers/oauth_server.pyhttps://github.com/modelcontextprotocol/python-sdk/blob/main/examples/snippets/servers/oauth_server.py
examples/servers/simple-auth/https://github.com/modelcontextprotocol/python-sdk/blob/mrtr-draft/examples/servers/simple-auth
TokenVerifierhttps://github.com/modelcontextprotocol/python-sdk/blob/mrtr-draft/src/mcp/server/auth/provider.py
https://github.com/modelcontextprotocol/python-sdk/tree/mrtr-draft#fastmcp-properties
https://github.com/modelcontextprotocol/python-sdk/tree/mrtr-draft#session-properties-and-methods
https://github.com/modelcontextprotocol/python-sdk/tree/mrtr-draft#request-context-properties
examples/snippets/servers/lifespan_example.pyhttps://github.com/modelcontextprotocol/python-sdk/blob/main/examples/snippets/servers/lifespan_example.py
https://github.com/modelcontextprotocol/python-sdk/tree/mrtr-draft#running-your-server
https://github.com/modelcontextprotocol/python-sdk/tree/mrtr-draft#development-mode
https://github.com/modelcontextprotocol/python-sdk/tree/mrtr-draft#claude-desktop-integration
https://github.com/modelcontextprotocol/python-sdk/tree/mrtr-draft#direct-execution
examples/snippets/servers/direct_execution.pyhttps://github.com/modelcontextprotocol/python-sdk/blob/main/examples/snippets/servers/direct_execution.py
https://github.com/modelcontextprotocol/python-sdk/tree/mrtr-draft#streamable-http-transport
examples/snippets/servers/streamable_config.pyhttps://github.com/modelcontextprotocol/python-sdk/blob/main/examples/snippets/servers/streamable_config.py
examples/snippets/servers/streamable_starlette_mount.pyhttps://github.com/modelcontextprotocol/python-sdk/blob/main/examples/snippets/servers/streamable_starlette_mount.py
examples/servers/simple-streamablehttp/https://github.com/modelcontextprotocol/python-sdk/blob/mrtr-draft/examples/servers/simple-streamablehttp
examples/servers/simple-streamablehttp-stateless/https://github.com/modelcontextprotocol/python-sdk/blob/mrtr-draft/examples/servers/simple-streamablehttp-stateless
https://github.com/modelcontextprotocol/python-sdk/tree/mrtr-draft#cors-configuration-for-browser-based-clients
https://github.com/modelcontextprotocol/python-sdk/tree/mrtr-draft#mounting-to-an-existing-asgi-server
Starlette documentationhttps://www.starlette.io/routing/#submounting-routes
https://github.com/modelcontextprotocol/python-sdk/tree/mrtr-draft#streamablehttp-servers
https://github.com/modelcontextprotocol/python-sdk/tree/mrtr-draft#basic-mounting
examples/snippets/servers/streamable_http_basic_mounting.pyhttps://github.com/modelcontextprotocol/python-sdk/blob/main/examples/snippets/servers/streamable_http_basic_mounting.py
https://github.com/modelcontextprotocol/python-sdk/tree/mrtr-draft#host-based-routing
examples/snippets/servers/streamable_http_host_mounting.pyhttps://github.com/modelcontextprotocol/python-sdk/blob/main/examples/snippets/servers/streamable_http_host_mounting.py
https://github.com/modelcontextprotocol/python-sdk/tree/mrtr-draft#multiple-servers-with-path-configuration
examples/snippets/servers/streamable_http_multiple_servers.pyhttps://github.com/modelcontextprotocol/python-sdk/blob/main/examples/snippets/servers/streamable_http_multiple_servers.py
https://github.com/modelcontextprotocol/python-sdk/tree/mrtr-draft#path-configuration-at-initialization
examples/snippets/servers/streamable_http_path_config.pyhttps://github.com/modelcontextprotocol/python-sdk/blob/main/examples/snippets/servers/streamable_http_path_config.py
https://github.com/modelcontextprotocol/python-sdk/tree/mrtr-draft#sse-servers
Streamable HTTP transporthttps://modelcontextprotocol.io/specification/2025-03-26/basic/transports#streamable-http
Starlette documentationhttps://www.starlette.io/routing/#submounting-routes
https://github.com/modelcontextprotocol/python-sdk/tree/mrtr-draft#advanced-usage
https://github.com/modelcontextprotocol/python-sdk/tree/mrtr-draft#low-level-server
examples/snippets/servers/lowlevel/lifespan.pyhttps://github.com/modelcontextprotocol/python-sdk/blob/main/examples/snippets/servers/lowlevel/lifespan.py
examples/snippets/servers/lowlevel/basic.pyhttps://github.com/modelcontextprotocol/python-sdk/blob/main/examples/snippets/servers/lowlevel/basic.py
https://github.com/modelcontextprotocol/python-sdk/tree/mrtr-draft#structured-output-support
examples/snippets/servers/lowlevel/structured_output.pyhttps://github.com/modelcontextprotocol/python-sdk/blob/main/examples/snippets/servers/lowlevel/structured_output.py
https://github.com/modelcontextprotocol/python-sdk/tree/mrtr-draft#returning-calltoolresult-directly
examples/snippets/servers/lowlevel/direct_call_tool_result.pyhttps://github.com/modelcontextprotocol/python-sdk/blob/main/examples/snippets/servers/lowlevel/direct_call_tool_result.py
https://github.com/modelcontextprotocol/python-sdk/tree/mrtr-draft#pagination-advanced
https://github.com/modelcontextprotocol/python-sdk/tree/mrtr-draft#server-side-implementation
examples/snippets/servers/pagination_example.pyhttps://github.com/modelcontextprotocol/python-sdk/blob/main/examples/snippets/servers/pagination_example.py
https://github.com/modelcontextprotocol/python-sdk/tree/mrtr-draft#client-side-consumption
examples/snippets/clients/pagination_client.pyhttps://github.com/modelcontextprotocol/python-sdk/blob/main/examples/snippets/clients/pagination_client.py
https://github.com/modelcontextprotocol/python-sdk/tree/mrtr-draft#key-points
simple-pagination examplehttps://github.com/modelcontextprotocol/python-sdk/blob/mrtr-draft/examples/servers/simple-pagination
https://github.com/modelcontextprotocol/python-sdk/tree/mrtr-draft#writing-mcp-clients
transportshttps://modelcontextprotocol.io/specification/2025-03-26/basic/transports
examples/snippets/clients/stdio_client.pyhttps://github.com/modelcontextprotocol/python-sdk/blob/main/examples/snippets/clients/stdio_client.py
Streamable HTTP transporthttps://modelcontextprotocol.io/specification/2025-03-26/basic/transports#streamable-http
examples/snippets/clients/streamable_basic.pyhttps://github.com/modelcontextprotocol/python-sdk/blob/main/examples/snippets/clients/streamable_basic.py
https://github.com/modelcontextprotocol/python-sdk/tree/mrtr-draft#client-display-utilities
examples/snippets/clients/display_utilities.pyhttps://github.com/modelcontextprotocol/python-sdk/blob/main/examples/snippets/clients/display_utilities.py
https://github.com/modelcontextprotocol/python-sdk/tree/mrtr-draft#oauth-authentication-for-clients
authorization supporthttps://modelcontextprotocol.io/specification/2025-03-26/basic/authorization
examples/snippets/clients/oauth_client.pyhttps://github.com/modelcontextprotocol/python-sdk/blob/main/examples/snippets/clients/oauth_client.py
examples/clients/simple-auth-client/https://github.com/modelcontextprotocol/python-sdk/blob/mrtr-draft/examples/clients/simple-auth-client
https://github.com/modelcontextprotocol/python-sdk/tree/mrtr-draft#parsing-tool-results
https://github.com/modelcontextprotocol/python-sdk/tree/mrtr-draft#mcp-primitives
https://github.com/modelcontextprotocol/python-sdk/tree/mrtr-draft#server-capabilities
https://github.com/modelcontextprotocol/python-sdk/tree/mrtr-draft#documentation
API Referencehttps://modelcontextprotocol.github.io/python-sdk/api/
Experimental Features (Tasks)https://modelcontextprotocol.github.io/python-sdk/experimental/tasks/
Model Context Protocol documentationhttps://modelcontextprotocol.io
Model Context Protocol specificationhttps://modelcontextprotocol.io/specification/latest
Officially supported servershttps://github.com/modelcontextprotocol/servers
https://github.com/modelcontextprotocol/python-sdk/tree/mrtr-draft#contributing
contributing guidehttps://github.com/modelcontextprotocol/python-sdk/blob/mrtr-draft/CONTRIBUTING.md
https://github.com/modelcontextprotocol/python-sdk/tree/mrtr-draft#license
py.sdk.modelcontextprotocol.io/https://py.sdk.modelcontextprotocol.io/
Readme https://github.com/modelcontextprotocol/python-sdk/tree/mrtr-draft#readme-ov-file
MIT license https://github.com/modelcontextprotocol/python-sdk/blob/main/LICENSE
Code of conduct https://github.com/modelcontextprotocol/python-sdk/tree/mrtr-draft#coc-ov-file
Contributing https://github.com/modelcontextprotocol/python-sdk/tree/mrtr-draft#contributing-ov-file
Security policy https://github.com/modelcontextprotocol/python-sdk/tree/mrtr-draft#security-ov-file
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/tree/mrtr-draft
Activityhttps://github.com/modelcontextprotocol/python-sdk/activity
Custom propertieshttps://github.com/modelcontextprotocol/python-sdk/custom-properties
3.7k forkshttps://github.com/modelcontextprotocol/python-sdk/forks
Report repository https://github.com/contact/report-content?content_url=https%3A%2F%2Fgithub.com%2Fmodelcontextprotocol%2Fpython-sdk&report=modelcontextprotocol+%28user%29
Releases 63https://github.com/modelcontextprotocol/python-sdk/releases
v1.28.1 Latest Jun 26, 2026 https://github.com/modelcontextprotocol/python-sdk/releases/tag/v1.28.1
+ 62 releaseshttps://github.com/modelcontextprotocol/python-sdk/releases
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/tree/mrtr-draft
Contributorshttps://github.com/modelcontextprotocol/python-sdk/graphs/contributors
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/tree/mrtr-draft
Python 99.9% https://github.com/modelcontextprotocol/python-sdk/search?l=python
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.