Skip to main content

Python MCP client provided by the AWS Transform team

Project description

Agent Builder MCP Client

An async Python client for talking to MCP servers, used by the Agent Builder SDK to invoke tools exposed over MCP.

Use it from any Python code that needs to call MCP tools — for example, an agent runtime that talks to one or more MCP servers.

Installation

pip install agent-builder-mcp-client-aws-transform

Quick start

import asyncio
from agent_builder_mcp_client import AsyncMCPClient


async def main():
    client = AsyncMCPClient()

    # Connect over stdio (local server process)
    await client.connect_via_stdio(command="agent-builder-mcp")

    # Or connect over SSE (remote server)
    # await client.connect_via_sse(server_url="https://example.com/mcp")

    # Inspect the tools the server exposes
    for tool in client.tools:
        print(tool.name, tool.description)


asyncio.run(main())

Transports

  • stdio — launch and talk to a local MCP server subprocess.
  • SSE — connect to a remote MCP server over HTTP with server-sent events, including optional custom headers for auth.

Requirements

  • Python 3.11+

License

Apache-2.0. See LICENSE and THIRD-PARTY-NOTICES.txt.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

agent_builder_mcp_client_aws_transform-1.0.0.tar.gz (18.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file agent_builder_mcp_client_aws_transform-1.0.0.tar.gz.

File metadata

File hashes

Hashes for agent_builder_mcp_client_aws_transform-1.0.0.tar.gz
Algorithm Hash digest
SHA256 028d920cd25dcd54b4c182b006133bd0b4306924fb435beff94905dcfedefccf
MD5 613b620eded09aa426a6f2e3db7a22d7
BLAKE2b-256 4cb052126a76ec06fb5f48d05b8af25d96f0733113264d90e7641aec26a0134b

See more details on using hashes here.

File details

Details for the file agent_builder_mcp_client_aws_transform-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for agent_builder_mcp_client_aws_transform-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8464b21509a1cbed138b2af360537f1a4874c2018f4dfd16b804b40017095545
MD5 82ec650861e4dc91e7e1e609f0dfdfea
BLAKE2b-256 0de47abb21374ebcb0e12b39a6786076a20409fb76e139a6685c5769e1eff737

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page