| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /:user_id/:repository/tree/*name(/*path) |
| route-controller | files |
| route-action | disambiguate |
| fetch-nonce | v2:0eea71ca-ecc8-32a3-9aa8-ecbbd523079f |
| current-catalog-service-hash | f3abb0cc802f3d7b95fc8762b94bdcb13bf39634c40c357301c4aa1d67a256fb |
| request-id | 89AC:364B55:95C691:C3D0DC:6B00DF83 |
| html-safe-nonce | 3d63039b064bd5010347cce94161e7818776d16d3ea987ad84fe0ea9eb21a2ea |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4OUFDOjM2NEI1NTo5NUM2OTE6QzNEMERDOjZCMDBERjgzIiwidmlzaXRvcl9pZCI6Ijc5NzkwMTg1NzQ0NjExOTgyMTEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 22f205a7f2ac2b9de09824a1ab03433f7e11133e159de4cc6f5e7a34c444a58b |
| hovercard-subject-tag | repository:862584018 |
| github-keyboard-shortcuts | repository,source-code,file-tree,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | ///files/disambiguate |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/modelcontextprotocol/python-sdk/tree/v2.0.x |
| twitter:image | https://opengraph.githubassets.com/c9b36e78f483eae6d0cb9b28648b8db978afcdd77d8c6bb4fbcac170fd15be18/modelcontextprotocol/python-sdk |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/c9b36e78f483eae6d0cb9b28648b8db978afcdd77d8c6bb4fbcac170fd15be18/modelcontextprotocol/python-sdk |
| og:image:alt | The official Python SDK for Model Context Protocol servers and clients - modelcontextprotocol/python-sdk |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 043c3f30fbcbe2c6c8e729e10cbbbc90c406546f9fbbb67c648d38f6b7d16daf |
| turbo-cache-control | no-cache |
| go-import | github.com/modelcontextprotocol/python-sdk git https://github.com/modelcontextprotocol/python-sdk.git |
| octolytics-dimension-user_id | 182288589 |
| octolytics-dimension-user_login | modelcontextprotocol |
| octolytics-dimension-repository_id | 862584018 |
| octolytics-dimension-repository_nwo | modelcontextprotocol/python-sdk |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 862584018 |
| octolytics-dimension-repository_network_root_nwo | modelcontextprotocol/python-sdk |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 5425dc24e8bd8d6fca9641a12afc984825a43875 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| Skip to content | https://github.com/modelcontextprotocol/python-sdk/tree/v2.0.x#start-of-content |
| https://github.com/ |
| Sign in | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmodelcontextprotocol%2Fpython-sdk%2Ftree%2Fv2.0.x |
| GitHubRepository hosting, code review, and collaboration | https://github.com/platform |
| CopilotAI coding agent for tasks, projects, and automated work | https://github.com/features/copilot |
| ActionsCI/CD and automation | https://github.com/features/actions |
| Code QualityQuality analysis, fixes, and enforcement | https://github.com/features/code-quality |
| CodespacesCloud development environments | https://github.com/features/codespaces |
| Code SecurityVulnerability detection and remediation | https://github.com/security/advanced-security/code-security |
| Secret ProtectionSecret scanning and leak prevention | https://github.com/security/advanced-security/secret-protection |
| All Features | https://github.com/features |
| Documentation | https://docs.github.com/en |
| Training | https://learn.github.com/skills |
| Certifications | https://learn.github.com/credentials |
| Build with Copilot | https://github.com/features/ai |
| Customize Copilot | https://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview |
| Integrations | https://github.com/marketplace |
| Trending repos | https://github.com/trending |
| GitHub Sponsors | https://github.com/open-source/sponsors |
| Developer articles | https://github.com/resources/articles |
| ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place. | https://github.blog/changelog/ |
| Enterprises | https://github.com/enterprise |
| Team | https://github.com/team |
| Startups | https://github.com/enterprise/startups |
| Nonprofits | https://github.com/solutions/industry/nonprofits |
| Healthcare | https://github.com/solutions/industry/healthcare |
| Financial services | https://github.com/solutions/industry/financial-services |
| Manufacturing | https://github.com/solutions/industry/manufacturing |
| Government | https://github.com/solutions/industry/government |
| See all industries | https://github.com/solutions/industry |
| Why GitHub | https://github.com/why-github |
| Customer Stories | https://github.com/customer-stories |
| Business insights | https://github.com/solutions/executive-insights |
| Trust Center | https://github.com/trust-center |
| GitHub Advanced SecurityEnterprise-grade code security | https://github.com/security/advanced-security |
| Copilot for businessEnterprise-grade AI features | https://github.com/features/copilot/copilot-business |
| Premium SupportEnterprise-grade 24/7 support | https://github.com/enterprise/premium-support |
| Documentation | https://docs.github.com/en |
| Resource center | https://github.com/resources |
| Blog | https://github.blog/ |
| Events & webinars | https://github.com/resources/events |
| Community Forum | https://github.com/orgs/community/discussions |
| Customer Stories | https://github.com/customer-stories |
| Integrations | https://github.com/marketplace |
| Customer support | https://help.github.com/ |
| Training | https://learn.github.com/skills |
| GitHub Status | https://www.githubstatus.com/ |
| About | https://github.com/about |
| Partners | https://github.com/partners |
| Changelog | https://github.blog/changelog/ |
| GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub. | https://githubuniverse.com/ |
| Pricing | https://github.com/pricing |
| Sign in | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmodelcontextprotocol%2Fpython-sdk%2Ftree%2Fv2.0.x |
| 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 |
| Reload | https://github.com/modelcontextprotocol/python-sdk/tree/v2.0.x |
| Reload | https://github.com/modelcontextprotocol/python-sdk/tree/v2.0.x |
| Reload | https://github.com/modelcontextprotocol/python-sdk/tree/v2.0.x |
| modelcontextprotocol | https://github.com/modelcontextprotocol |
| python-sdk | https://github.com/modelcontextprotocol/python-sdk |
| Code | https://github.com/modelcontextprotocol/python-sdk |
| Issues308 (308) | https://github.com/modelcontextprotocol/python-sdk/issues |
| Pull requests112 (112) | https://github.com/modelcontextprotocol/python-sdk/pulls |
| Actions | https://github.com/modelcontextprotocol/python-sdk/actions |
| Projects | https://github.com/modelcontextprotocol/python-sdk/projects |
| Security and quality12 (12) | https://github.com/modelcontextprotocol/python-sdk/security |
| Insights | https://github.com/modelcontextprotocol/python-sdk/insights |
| https://github.com/modelcontextprotocol/python-sdk |
| python-sdk | https://github.com/modelcontextprotocol/python-sdk |
| Notifications | https://github.com/login?return_to=%2Fmodelcontextprotocol%2Fpython-sdk |
| Fork4.2k (4.2k) | https://github.com/login?return_to=%2Fmodelcontextprotocol%2Fpython-sdk |
| Star24.9k (24.9k) | https://github.com/login?return_to=%2Fmodelcontextprotocol%2Fpython-sdk |
| py.sdk.modelcontextprotocol.io/ | https://py.sdk.modelcontextprotocol.io/ |
| mcp | https://github.com/topics/mcp |
| mcp-client | https://github.com/topics/mcp-client |
| mcp-server | https://github.com/topics/mcp-server |
| python | https://github.com/topics/python |
| Readme | https://github.com/modelcontextprotocol/python-sdk/tree/v2.0.x#readme-ov-file |
| License | https://github.com/modelcontextprotocol/python-sdk/tree/v2.0.x#License-1-ov-file |
| Code of conduct | https://github.com/modelcontextprotocol/python-sdk/tree/v2.0.x#coc-ov-file |
| Contributing | https://github.com/modelcontextprotocol/python-sdk/tree/v2.0.x#contributing-ov-file |
| Security policy | https://github.com/modelcontextprotocol/python-sdk/tree/v2.0.x#security-ov-file |
| Activity | https://github.com/modelcontextprotocol/python-sdk/activity |
| Custom properties | https://github.com/modelcontextprotocol/python-sdk/custom-properties |
| 4.2k forks | https://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 |
| Branches | https://github.com/modelcontextprotocol/python-sdk/branches |
| Tags | https://github.com/modelcontextprotocol/python-sdk/tags |
| https://github.com/modelcontextprotocol/python-sdk/branches |
| https://github.com/modelcontextprotocol/python-sdk/tags |
| 1,017 Commits | https://github.com/modelcontextprotocol/python-sdk/commits/v2.0.x/ |
| https://github.com/modelcontextprotocol/python-sdk/commits/v2.0.x/ |
| .claude | https://github.com/modelcontextprotocol/python-sdk/tree/v2.0.x/.claude |
| .claude | https://github.com/modelcontextprotocol/python-sdk/tree/v2.0.x/.claude |
| .github | https://github.com/modelcontextprotocol/python-sdk/tree/v2.0.x/.github |
| .github | https://github.com/modelcontextprotocol/python-sdk/tree/v2.0.x/.github |
| docs | https://github.com/modelcontextprotocol/python-sdk/tree/v2.0.x/docs |
| docs | https://github.com/modelcontextprotocol/python-sdk/tree/v2.0.x/docs |
| docs_src | https://github.com/modelcontextprotocol/python-sdk/tree/v2.0.x/docs_src |
| docs_src | https://github.com/modelcontextprotocol/python-sdk/tree/v2.0.x/docs_src |
| examples | https://github.com/modelcontextprotocol/python-sdk/tree/v2.0.x/examples |
| examples | https://github.com/modelcontextprotocol/python-sdk/tree/v2.0.x/examples |
| schema | https://github.com/modelcontextprotocol/python-sdk/tree/v2.0.x/schema |
| schema | https://github.com/modelcontextprotocol/python-sdk/tree/v2.0.x/schema |
| scripts | https://github.com/modelcontextprotocol/python-sdk/tree/v2.0.x/scripts |
| scripts | https://github.com/modelcontextprotocol/python-sdk/tree/v2.0.x/scripts |
| src | https://github.com/modelcontextprotocol/python-sdk/tree/v2.0.x/src |
| src | https://github.com/modelcontextprotocol/python-sdk/tree/v2.0.x/src |
| tests | https://github.com/modelcontextprotocol/python-sdk/tree/v2.0.x/tests |
| tests | https://github.com/modelcontextprotocol/python-sdk/tree/v2.0.x/tests |
| .git-blame-ignore-revs | https://github.com/modelcontextprotocol/python-sdk/blob/v2.0.x/.git-blame-ignore-revs |
| .git-blame-ignore-revs | https://github.com/modelcontextprotocol/python-sdk/blob/v2.0.x/.git-blame-ignore-revs |
| .gitattributes | https://github.com/modelcontextprotocol/python-sdk/blob/v2.0.x/.gitattributes |
| .gitattributes | https://github.com/modelcontextprotocol/python-sdk/blob/v2.0.x/.gitattributes |
| .gitignore | https://github.com/modelcontextprotocol/python-sdk/blob/v2.0.x/.gitignore |
| .gitignore | https://github.com/modelcontextprotocol/python-sdk/blob/v2.0.x/.gitignore |
| .pre-commit-config.yaml | https://github.com/modelcontextprotocol/python-sdk/blob/v2.0.x/.pre-commit-config.yaml |
| .pre-commit-config.yaml | https://github.com/modelcontextprotocol/python-sdk/blob/v2.0.x/.pre-commit-config.yaml |
| AGENTS.md | https://github.com/modelcontextprotocol/python-sdk/blob/v2.0.x/AGENTS.md |
| AGENTS.md | https://github.com/modelcontextprotocol/python-sdk/blob/v2.0.x/AGENTS.md |
| CLAUDE.md | https://github.com/modelcontextprotocol/python-sdk/blob/v2.0.x/CLAUDE.md |
| CLAUDE.md | https://github.com/modelcontextprotocol/python-sdk/blob/v2.0.x/CLAUDE.md |
| CODE_OF_CONDUCT.md | https://github.com/modelcontextprotocol/python-sdk/blob/v2.0.x/CODE_OF_CONDUCT.md |
| CODE_OF_CONDUCT.md | https://github.com/modelcontextprotocol/python-sdk/blob/v2.0.x/CODE_OF_CONDUCT.md |
| CONTRIBUTING.md | https://github.com/modelcontextprotocol/python-sdk/blob/v2.0.x/CONTRIBUTING.md |
| CONTRIBUTING.md | https://github.com/modelcontextprotocol/python-sdk/blob/v2.0.x/CONTRIBUTING.md |
| LICENSE | https://github.com/modelcontextprotocol/python-sdk/blob/v2.0.x/LICENSE |
| LICENSE | https://github.com/modelcontextprotocol/python-sdk/blob/v2.0.x/LICENSE |
| README.md | https://github.com/modelcontextprotocol/python-sdk/blob/v2.0.x/README.md |
| README.md | https://github.com/modelcontextprotocol/python-sdk/blob/v2.0.x/README.md |
| RELEASE.md | https://github.com/modelcontextprotocol/python-sdk/blob/v2.0.x/RELEASE.md |
| RELEASE.md | https://github.com/modelcontextprotocol/python-sdk/blob/v2.0.x/RELEASE.md |
| SECURITY.md | https://github.com/modelcontextprotocol/python-sdk/blob/v2.0.x/SECURITY.md |
| SECURITY.md | https://github.com/modelcontextprotocol/python-sdk/blob/v2.0.x/SECURITY.md |
| mkdocs.yml | https://github.com/modelcontextprotocol/python-sdk/blob/v2.0.x/mkdocs.yml |
| mkdocs.yml | https://github.com/modelcontextprotocol/python-sdk/blob/v2.0.x/mkdocs.yml |
| pyproject.toml | https://github.com/modelcontextprotocol/python-sdk/blob/v2.0.x/pyproject.toml |
| pyproject.toml | https://github.com/modelcontextprotocol/python-sdk/blob/v2.0.x/pyproject.toml |
| uv.lock | https://github.com/modelcontextprotocol/python-sdk/blob/v2.0.x/uv.lock |
| uv.lock | https://github.com/modelcontextprotocol/python-sdk/blob/v2.0.x/uv.lock |
| README | https://github.com/modelcontextprotocol/python-sdk/tree/v2.0.x |
| Code of conduct | https://github.com/modelcontextprotocol/python-sdk/tree/v2.0.x |
| Contributing | https://github.com/modelcontextprotocol/python-sdk/tree/v2.0.x |
| License | https://github.com/modelcontextprotocol/python-sdk/tree/v2.0.x |
| Security | https://github.com/modelcontextprotocol/python-sdk/tree/v2.0.x |
| https://github.com/modelcontextprotocol/python-sdk/tree/v2.0.x#mcp-python-sdk |
| https://pypi.org/project/mcp/ |
| https://github.com/modelcontextprotocol/python-sdk/blob/main/LICENSE |
| https://www.python.org/downloads/ |
| https://py.sdk.modelcontextprotocol.io/ |
| https://modelcontextprotocol.io |
| https://modelcontextprotocol.io/specification/latest |
| 2026-07-28 MCP specification | https://blog.modelcontextprotocol.io/posts/2026-07-28-release-candidate/ |
| What's new in v2 | https://py.sdk.modelcontextprotocol.io/whats-new/ |
| migration guide | https://py.sdk.modelcontextprotocol.io/migration/ |
| v1.x branch | https://github.com/modelcontextprotocol/python-sdk/tree/v1.x |
| https://py.sdk.modelcontextprotocol.io/v1/ | https://py.sdk.modelcontextprotocol.io/v1/ |
| Open an issue | https://github.com/modelcontextprotocol/python-sdk/issues/new?template=v2-feedback.yaml |
| #python-sdk-dev on the MCP Contributors Discord | https://discord.gg/6CSzBmMkjX |
| https://github.com/modelcontextprotocol/python-sdk/tree/v2.0.x#documentation |
| https://py.sdk.modelcontextprotocol.io/ | https://py.sdk.modelcontextprotocol.io/ |
| Get started guide | https://py.sdk.modelcontextprotocol.io/get-started/ |
| What's new in v2 | https://py.sdk.modelcontextprotocol.io/whats-new/ |
| API reference | https://py.sdk.modelcontextprotocol.io/api/mcp/ |
| migration guide | https://py.sdk.modelcontextprotocol.io/migration/ |
| https://github.com/modelcontextprotocol/python-sdk/tree/v2.0.x#what-is-mcp |
| Model Context Protocol | https://modelcontextprotocol.io |
| https://github.com/modelcontextprotocol/python-sdk/tree/v2.0.x#requirements |
| https://github.com/modelcontextprotocol/python-sdk/tree/v2.0.x#installation |
| https://github.com/modelcontextprotocol/python-sdk/tree/v2.0.x#a-server-in-15-lines |
| docs_src/index/tutorial001.py | https://github.com/modelcontextprotocol/python-sdk/blob/main/docs_src/index/tutorial001.py |
| MCP Inspector | https://github.com/modelcontextprotocol/inspector |
| Get started | https://py.sdk.modelcontextprotocol.io/get-started/ |
| https://github.com/modelcontextprotocol/python-sdk/tree/v2.0.x#a-client-in-10-lines |
| https://github.com/modelcontextprotocol/python-sdk/tree/v2.0.x#contributing |
| contributing guide | https://github.com/modelcontextprotocol/python-sdk/blob/main/CONTRIBUTING.md |
| https://github.com/modelcontextprotocol/python-sdk/tree/v2.0.x#license |
| LICENSE | https://github.com/modelcontextprotocol/python-sdk/blob/main/LICENSE |
| py.sdk.modelcontextprotocol.io/ | https://py.sdk.modelcontextprotocol.io/ |
| mcp | https://github.com/topics/mcp |
| mcp-client | https://github.com/topics/mcp-client |
| mcp-server | https://github.com/topics/mcp-server |
| python | https://github.com/topics/python |
| Readme | https://github.com/modelcontextprotocol/python-sdk/tree/v2.0.x#readme-ov-file |
| License | https://github.com/modelcontextprotocol/python-sdk/tree/v2.0.x#License-1-ov-file |
| Code of conduct | https://github.com/modelcontextprotocol/python-sdk/tree/v2.0.x#coc-ov-file |
| Contributing | https://github.com/modelcontextprotocol/python-sdk/tree/v2.0.x#contributing-ov-file |
| Security policy | https://github.com/modelcontextprotocol/python-sdk/tree/v2.0.x#security-ov-file |
| Activity | https://github.com/modelcontextprotocol/python-sdk/activity |
| Custom properties | https://github.com/modelcontextprotocol/python-sdk/custom-properties |
| 4.2k forks | https://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 |
|
| https://github.com |
| Terms | https://docs.github.com/site-policy/github-terms/github-terms-of-service |
| Privacy | https://docs.github.com/site-policy/privacy-policies/github-privacy-statement |
| Security | https://github.com/security |
| Status | https://www.githubstatus.com/ |
| Community | https://github.community/ |
| Docs | https://docs.github.com/ |
| Contact | https://support.github.com?tags=dotcom-footer |