Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Python SDK for interacting with the MCP Toolbox for Databases.

License

NotificationsYou must be signed in to change notification settings

googleapis/mcp-toolbox-sdk-python

 
 

MCP Toolbox Logo

MCP Toolbox SDKs for Python

License: Apache 2.0PyPI - Python Version

This repository contains Python SDKs designed to seamlessly integrate thefunctionalities of theMCPToolbox into your Gen AIapplications. These SDKs allow you to load tools defined in Toolbox and use themas standard Python functions or objects within popular orchestration frameworksor your custom code.

This simplifies the process of incorporating external functionalities (likeDatabases or APIs) managed by Toolbox into your GenAI applications.

Overview

The MCP Toolbox service provides a centralized way to manage and expose tools(like API connectors, database query tools, etc.) for use by GenAI applications.

These Python SDKs act as clients for that service. They handle the communication needed to:

  • Fetch tool definitions from your running Toolbox instance.
  • Provide convenient Python objects or functions representing those tools.
  • Invoke the tools (calling the underlying APIs/services configured in Toolbox).
  • Handle authentication and parameter binding as needed.

By using these SDKs, you can easily leverage your Toolbox-managed tools directlywithin your Python applications or AI orchestration frameworks.

Which Package Should I Use?

Choosing the right package depends on how you are building your application:

  • toolbox-langchain:Use this package if you are building your application using the LangChain orLangGraph frameworks. It provides tools that are directly compatible with theLangChain ecosystem (BaseTool interface), simplifying integration.
  • toolbox-llamaindex:Use this package if you are building your application using the LlamaIndex framework.It provides tools that are directly compatible with theLlamaIndex ecosystem (BaseTool interface), simplifying integration.
  • toolbox-core:Use this package if you are not using LangChain/LangGraph or any otherorchestration framework, or if you need a framework-agnostic way to interactwith Toolbox tools (e.g., for custom orchestration logic or direct use inPython scripts).

Available Packages

This repository hosts the following Python packages. See the package-specificREADME for detailed installation and usage instructions:

PackageTarget Use CaseIntegrationPathDetails (README)PyPI Status
toolbox-coreFramework-agnostic / Custom applicationsUse directly / Custompackages/toolbox-core/📄View READMEpypi version
toolbox-langchainLangChain / LangGraph applicationsLangChain / LangGraphpackages/toolbox-langchain/📄View READMEpypi version
toolbox-llamaindexLlamaIndex applicationsLlamaIndexpackages/toolbox-llamaindex/📄View READMEpypi version

Getting Started

To get started using Toolbox tools with an application, follow these general steps:

  1. Set up and Run the Toolbox Service:

    Before using the SDKs, you need the main MCP Toolbox service running. Followthe instructions here:Toolbox Getting StartedGuide

  2. Install the Appropriate SDK:

    Choose the package based on your needs (see "Which Package Should I Use?" above) and install it:

    # For the core, framework-agnostic SDKpip install toolbox-core# OR# For LangChain/LangGraph integrationpip install toolbox-langchain# For the LlamaIndex integrationpip install toolbox-llamaindex
  3. Use the SDK:

    Consult the README for your chosen package (linked in the "AvailablePackages" section above) for detailed instructions onhow to connect the client, load tool definitions, invoke tools, configureauthentication/binding, and integrate them into your application orframework.

Tip

For a complete, end-to-end example including setting up the service and usingan SDK, see the full tutorial:Toolbox QuickstartTutorial

Contributing

Contributions are welcome! Please refer to theCONTRIBUTING.mdto get started.

License

This project is licensed under the Apache License 2.0. See theLICENSE filefor details.

Support

If you encounter issues or have questions, please check the existingGitHubIssues for the main Toolboxproject. If your issue is specific to one of the SDKs, please look for existingissueshere oropen a new issue in this repository.

Packages

No packages published

Contributors14


[8]ページ先頭

©2009-2025 Movatter.jp