MCP Toolbox Core SDK
This SDK allows you to seamlessly integrate the functionalities of MCP Toolbox allowing you to load and use tools defined in the service as standard Python functions within your GenAI applications.
For detailed guides, authentication examples, and advanced configuration, visit the Python SDK Core Guide.
Installation
pip install toolbox-core
Quickstart
Here's a minimal example to get you started. Ensure your Toolbox service is running and accessible.
import asyncio
from toolbox_core import ToolboxClient
async def main():
# Replace with the actual URL where your Toolbox service is running
async with ToolboxClient("http://127.0.0.1:5000") as toolbox:
weather_tool = await toolbox.load_tool("get_weather")
result = await weather_tool(location="London")
print(result)
if __name__ == "__main__":
asyncio.run(main())
Usage
The core package provides a framework-agnostic way to interact with your Toolbox server. For detailed guides and advanced configuration, please visit the following sections on our Documentation Site:
- Transport Protocols
- Loading Tools
- Invoking Tools
- Synchronous Usage
- Use With Langraph
- Client to Server Authentication
- Authenticating Tools
- Binding Parameter Values
- OpenTelemetry
Contributing
Contributions are welcome! Please refer to the DEVELOPER.md file for guidelines on how to set up a development environment and run tests.
License
This project is licensed under the Apache License 2.0. See the LICENSE file for details.
Support
If you encounter issues or have questions, check the existing GitHub Issues for the main Toolbox project.
Release files for toolbox-core 1.4.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 | |
|---|---|---|---|
| toolbox_core-1.4.0.tar.gz | 71.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| toolbox_core-1.4.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 137.4 kB
Release files / toolbox_core-1.4.0.tar.gz
| Download URL | toolbox_core-1.4.0.tar.gz |
|---|---|
| Size | 71.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1ce6d653b051d439eaa8f18e1bc5887842dc8332468da8e89bc18fb0adad3393
|
|
BLAKE2b-256 checksum How to use checksums |
7427357f2ea45a54a90c09b958e3d868ac5c74c212bf2a4103c7536b72906135
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.2.0 CPython/3.11.2
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by Google Cloud, verified by PyPI on Sep 1, 2026.
Transparency logRelease files / toolbox_core-1.4.0-py3-none-any.whl
| Download URL | toolbox_core-1.4.0-py3-none-any.whl |
|---|---|
| Size | 66.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b86b5fbc76f2321f5370485cc8f7feb8773e7d8ae4e3959428f73051ff7713b1
|
|
BLAKE2b-256 checksum How to use checksums |
2c33b6127c0500970161e4178b9ad784b0be86baa1798c0be92690cb6de8958f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.2.0 CPython/3.11.2
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by Google Cloud, verified by PyPI on Sep 1, 2026.
Transparency log