MCP Context SDK
Overview
The MCP Context SDK is a modular, production-ready Python SDK that enables AI agents, models, and tools to work with structured context schemas. It supports dynamic context construction, prompt generation, and integration with modern AI frameworks.
Features
- Dynamic context construction and validation
- Schema-to-prompt conversion
- Integration with LangChain, AutoGen, FastAPI, CrewAI, LangGraph, and OpenDevin
- CLI and Streamlit UI demos
- Type hints and schema validations
Quick Start
Installation
pip install mcp-context-sdk
Usage
CLI Tool
List available schemas:
mcp list-schemas coding
Convert context to prompt:
mcp convert-context context.json coding --version v1
Streamlit UI
Run the Streamlit app to interactively edit and preview context:
streamlit run examples/streamlit_ui.py
How to Use with LangChain/AutoGen
- Integrate MCP context into LangChain and AutoGen workflows for enhanced AI operations.
Creating Your Own Schema
- Define domain-specific schemas and integrate them into the MCP SDK.
Running the Landing Page
To view the landing page locally, open docs/landing/index.html in your browser. For deployment, consider using GitHub Pages or Vercel.
License
This project is licensed under the MIT License.
Contribution
Contributions are welcome! Please read the contribution guidelines first.
Metadata
Release files for mcp-context-sdk 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| mcp_context_sdk-0.1.0.tar.gz | 11.2 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| mcp_context_sdk-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 26.7 kB
Release files / mcp_context_sdk-0.1.0.tar.gz
| Download URL | mcp_context_sdk-0.1.0.tar.gz |
|---|---|
| Size | 11.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ad086003f8c3e4b15f883e399e112f394614fdb46f9ca4c73042ace8f3fe455d
|
|
BLAKE2b-256 checksum How to use checksums |
6eff860faf054b5e43fd852290fe93592caa17be4aa3bd0724e6c73ef06b8f1e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.3
|
Release files / mcp_context_sdk-0.1.0-py3-none-any.whl
| Download URL | mcp_context_sdk-0.1.0-py3-none-any.whl |
|---|---|
| Size | 15.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
df0bead5699a23fe5b8976c6ae4fd08155d768791d4a97ab750bf7acdb1136aa
|
|
BLAKE2b-256 checksum How to use checksums |
fe8d5e4098534f574a74a8514b2740a5ee96d3de31133ab1285e355473aae792
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.3
|
Security for mcp-context-sdk 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.