Litemcp simplifies SDK adoption into MCP by providing a lightweight client for integrating AI SDKs like LangChain and Agent SDK, emphasizing simplicity, flexibility, and minimal dependencies. Litemcp simplifies SDK adoption
A minimal, lightweight client designed to simplify SDK adoption into MCP.
litemcp enables rapid and intuitive integration of various AI SDKs (e.g., LangChain, Agent SDK) into your MCP projects, emphasizing simplicity, flexibility, and minimal dependencies.
Install via pip:
pip install litemcp
litemcp
allows you to integrate tools from an MCP server into various LLM runtimes, including the OpenAI Agent SDK, LangChain, and direct OpenAI API calls. The examples demonstrate integration with OpenAI Agent SDK, LangChain, and direct OpenAI API calls, showcasing how to use MCPServerManager
to bind tools and execute them. It also provides an optional tool call validator for enhanced security, allowing custom validation functions to control MCP tool calls.
You can add a custom validation function to control MCP tool calls.
Configure your MCP environment with optional server enabling and tool exclusion. The configuration schema uses a JSON format to define MCP servers, their commands, arguments, and options to exclude specific tools or require confirmation for certain actions.
Detailed documentation coming soon!
Contributions and suggestions are welcome! Please open an issue or submit a pull request.
liteMCP is available under the MIT License.