mcp-lite
The library for local work with AI tools without running MCP server.
Installation
pip install mcp-lite
Import
from mcp_lite import MCP
Usage
mcp = MCP()
@mcp.tool
def sync_add(a, b):
return a + b
@mcp.tool
async def async_mul(a, b):
return a * b
tools = mcp.list_tools()
# Some code where AI calls some tools :)
for tool_call in tool_calls:
tool_name = tool_call.get("tool_name")
tool_args = tool_call.get("args", {})
tool_result = await mcp.call_tool(tool_name, tool_args)
Release files for mcp-lite 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 | |
|---|---|---|---|
| mcp_lite-0.1.0.tar.gz | 4.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| mcp_lite-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 7.6 kB
Release files / mcp_lite-0.1.0.tar.gz
| Download URL | mcp_lite-0.1.0.tar.gz |
|---|---|
| Size | 4.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
97a2249479d8901598a8d27d92a320bf67d9a9bbd4e63b88da1b7acac2a44888
|
|
BLAKE2b-256 checksum How to use checksums |
dab45f1c695d3b4e8bcc3edb352c081bea1b85b6e3b4cfa48eb0277817ce83df
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.6.6
|
Release files / mcp_lite-0.1.0-py3-none-any.whl
| Download URL | mcp_lite-0.1.0-py3-none-any.whl |
|---|---|
| Size | 3.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
79cea9489f25f1e554143a58322ecab325add8db2d859e28fb351dc9b1ba5f1d
|
|
BLAKE2b-256 checksum How to use checksums |
e28059e29e74fdb6df39e37c098917596d39b3aa02ed1e9aaf659e935b2d3c39
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.6.6
|