Model Context Protocol SDK for building context-aware AI systems
Project description
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mcp_context_sdk-0.1.0.tar.gz.
File metadata
- Download URL: mcp_context_sdk-0.1.0.tar.gz
- Upload date:
- Size: 11.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ad086003f8c3e4b15f883e399e112f394614fdb46f9ca4c73042ace8f3fe455d
|
|
| MD5 |
b1b504fafb2f35024dd124b7515d8dca
|
|
| BLAKE2b-256 |
6eff860faf054b5e43fd852290fe93592caa17be4aa3bd0724e6c73ef06b8f1e
|
File details
Details for the file mcp_context_sdk-0.1.0-py3-none-any.whl.
File metadata
- Download URL: mcp_context_sdk-0.1.0-py3-none-any.whl
- Upload date:
- Size: 15.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
df0bead5699a23fe5b8976c6ae4fd08155d768791d4a97ab750bf7acdb1136aa
|
|
| MD5 |
c7573928377d69c9b04199097b772794
|
|
| BLAKE2b-256 |
fe8d5e4098534f574a74a8514b2740a5ee96d3de31133ab1285e355473aae792
|