Skip to main content

composio-claude-agent-sdk

Adapts Composio tools to the Claude Agent SDK, exposing them to Claude through an in-process MCP server.

Installation

pip install composio composio-claude-agent-sdk claude-agent-sdk

The Claude Agent SDK also requires the Claude Code CLI: npm install -g @anthropic-ai/claude-code.

Set COMPOSIO_API_KEY (from the dashboard) and ANTHROPIC_API_KEY in your environment.

Quickstart

import asyncio

from composio import Composio
from composio_claude_agent_sdk import ClaudeAgentSDKProvider
from claude_agent_sdk import (
    AssistantMessage,
    ClaudeAgentOptions,
    TextBlock,
    create_sdk_mcp_server,
    query,
)

composio = Composio(provider=ClaudeAgentSDKProvider())

# Each session is scoped to one of your users
session = composio.create(user_id="user_123")
tools = session.tools()

server = create_sdk_mcp_server(name="composio", version="1.0.0", tools=tools)


async def main():
    options = ClaudeAgentOptions(
        system_prompt="You are a helpful assistant. Use tools to complete tasks.",
        permission_mode="bypassPermissions",
        mcp_servers={"composio": server},
    )
    async for message in query(prompt="Summarize my emails from today", options=options):
        if isinstance(message, AssistantMessage):
            for block in message.content:
                if isinstance(block, TextBlock):
                    print(block.text)


asyncio.run(main())

For multi-turn use, store session.session_id and reuse it with composio.use(session_id) instead of calling create() again.

How tools are exposed

session.tools() returns SdkMcpTool objects that plug straight into create_sdk_mcp_server. The provider also ships composio.provider.create_mcp_server(tools) if you prefer a preconfigured server (name composio, customizable via ClaudeAgentSDKProvider(server_name=..., server_version=...)).

Metadata

Release files for composio-claude-agent-sdk 0.34.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for composio-claude-agent-sdk 0.34.0
File Size Uploaded Provenance Actions
composio_claude_agent_sdk-0.34.0.tar.gz 6.1 kB With provenance Details for composio_claude_agent_sdk-0.34.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for composio-claude-agent-sdk 0.34.0
File Interpreter ABI Platform Actions
composio_claude_agent_sdk-0.34.0-py3-none-any.whl Python 3 none any Details for composio_claude_agent_sdk-0.34.0-py3-none-any.whl

Total release size: 10.7 kB

Release files / composio_claude_agent_sdk-0.34.0.tar.gz

Download URL composio_claude_agent_sdk-0.34.0.tar.gz
Size 6.1 kB
Tags Source
SHA-256 checksum
How to use checksums
d4deab9d67a145a94ab514d590b32066ce4801cdbd3d0895d464ecc8fd1c2f70
BLAKE2b-256 checksum
How to use checksums
debcfdad9b560253da2210640eaa34f07a1db2af38a2a8fd6f836ebb98f329c3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 GitHub Actions, verified by PyPI on Nov 20, 2026.

Transparency log

Release files / composio_claude_agent_sdk-0.34.0-py3-none-any.whl

Download URL composio_claude_agent_sdk-0.34.0-py3-none-any.whl
Size 4.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e6d6bdb9d7d3f159696433d4b1d1aa432f4f863e9cf419608d31d213b88febba
BLAKE2b-256 checksum
How to use checksums
f28384ec8d14a44c2f3d1d439c1a5776e1ab03f7ccad18dae6b1b53967eb87f5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 GitHub Actions, verified by PyPI on Nov 20, 2026.

Transparency log

Security for composio-claude-agent-sdk 0.34.0

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for composio_claude_agent_sdk-0.34.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 20, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.34.0 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page