Circleci MCP for AI Agents

Securely connect your AI agents and chatbots (Claude, ChatGPT, Cursor, etc) with Circleci MCP or direct API to trigger builds, monitor jobs, manage pipelines, and automate deployment workflows through natural language.
Trusted by
AWS
Glean
Zoom
Airtable

30 min · no commitment · see it on your stack

Circleci Logo
Gradient Top
Gradient Middle
Gradient Bottom
divider

Try Circleci now

Enter a prompt below to test the integration in our Tool Router playground. You'll be redirected to sign in and try it live.

Supported Tools

Tools
Create ContextTool to create a new context in CircleCI.
Create Context (GraphQL)Tool to create a new CircleCI context using the GraphQL API.
Create Context RestrictionTool to create a context restriction in CircleCI.
Create Organization Orb AllowlistTool to create a new URL Orb allow-list entry for an organization.
Create Organization ProjectTool to create a new project within a CircleCI organization.
Create Organization GroupTool to create a group in an organization.
Create Project Environment VariableTool to create a new environment variable for a CircleCI project.
Create Usage Export JobTool to create a usage export job for a CircleCI organization.
Delete Context (GraphQL)Tool to delete a CircleCI context by its UUID using GraphQL API.
Delete Context RestrictionTool to delete a context restriction by its ID.
Delete Namespace and Related OrbsTool to delete a CircleCI registry namespace and all its associated orbs.
Delete Namespace AliasTool to remove a namespace alias by name in CircleCI.
Delete Organization Orb Allowlist EntryTool to remove an entry from the organization's URL orb allow-list.
Delete Organization GroupTool to delete a group from a CircleCI organization.
Delete ProjectTool to delete a CircleCI project and its settings.
Delete Project Environment VariableTool to delete an environment variable from a CircleCI project.
Get ContextTool to retrieve a context by its unique ID.
Get Current UserTool to retrieve information about the currently authenticated user.
Get Flaky TestsTool to get flaky tests for a project.
Get Job ArtifactsRetrieves artifacts (output files like test results, logs, build binaries, reports) produced by a CircleCI job.
Get Job DetailsTool to fetch details of a specific job within a project.
Get Orb DetailsTool to query detailed information about a CircleCI orb using the GraphQL API.
Get Orb VersionTool to retrieve detailed information about a specific CircleCI orb version via GraphQL.
Get OrganizationTool to retrieve organization details from CircleCI using GraphQL query.
Get Organization GroupTool to retrieve a group in an organization.
Get Pipeline ConfigTool to fetch pipeline configuration by ID.
Get Pipeline DefinitionTool to retrieve a pipeline definition by project and definition ID.
Get ProjectTool to retrieve a CircleCI project by its slug.
Get Project WorkflowsTool to get summary metrics for all workflows of a project.
Get Test MetadataTool to fetch test metadata for a specific job.
Get Usage Export JobTool to retrieve a usage export job by organization ID and job ID.
Get User InformationTool to retrieve information about a CircleCI user by their unique ID.
Get Workflow SummaryTool to get metrics and trends for a workflow.
List Context Environment VariablesTool to list all environment variables for a specific context.
List Insights BranchesTool to get all branches for a project from CircleCI Insights.
List Insights SummaryTool to get summary metrics with trends for the entire organization and for each project.
List Namespace OrbsTool to list orbs in a CircleCI registry namespace with pagination support.
List Orb CategoriesTool to retrieve all CircleCI orb categories with pagination support.
List OrbsTool to list CircleCI orbs with pagination support via GraphQL API.
List Organization GroupsTool to list all groups in a CircleCI organization.
List Pages SummaryTool to get summary metrics and trends for a project across its workflows and branches.
List Pipeline DefinitionsTool to list all pipeline definitions for a specific project.
List PipelinesTool to get a list of pipelines for an organization.
List Pipelines for ProjectTool to list all pipelines for a specific project.
List Project Environment VariablesTool to list all environment variables for a CircleCI project.
List Project SchedulesTool to list all schedules for a specific project.
List Self-Hosted RunnersList self-hosted runners in CircleCI.
List User CollaborationsTool to retrieve organizations where the authenticated user has access.
List Workflows by Pipeline IDTool to list all workflows associated with a specific pipeline.
List Workflows Jobs WorkflowsTool to get summary metrics for a project workflow's jobs.
List Workflows Test MetricsTool to get test metrics for a project's workflows.
Query ContextTool to retrieve a CircleCI context by its UUID using GraphQL API.
Query Namespace ExistsTool to determine if a namespace exists in the CircleCI registry.
Query Orb Category IDTool to fetch the unique category ID for a CircleCI orb category by its name.
Query Orb ExistsTool to check if an orb exists in CircleCI registry and retrieve its privacy status.
Query Orb IDTool to fetch an orb's ID and optionally its namespace ID by orb name.
Query Orb Latest VersionTool to fetch the latest published version of a CircleCI orb.
Query Orb SourceTool to retrieve source code of a specific CircleCI orb version via GraphQL.
Query Plan MetricsTool to query plan metrics including credit usage by project and organization for a date range.
Remove Context Environment Variable (GraphQL)Tool to remove an environment variable from a CircleCI context using GraphQL API.
Rename NamespaceTool to rename a CircleCI namespace by its UUID identifier.
Store Environment VariableTool to store an environment variable in a CircleCI context using GraphQL mutation.
Trigger PipelineTriggers a new CI/CD pipeline run for a specified CircleCI project.
Upsert Context Environment VariableTool to add or update an environment variable in a CircleCI context.
Validate Orb ConfigTool to validate CircleCI orb YAML configuration using the orbConfig GraphQL query.
Python
TypeScript

Install Composio

python
pip install composio claude-agent-sdk
Install the Composio SDK and Claude Agent SDK

Create Tool Router Session

python
from composio import Composio
from claude_agent_sdk import ClaudeSDKClient, ClaudeAgentOptions

composio = Composio(api_key='your-composio-api-key')
session = composio.create(user_id='your-user-id')
url = session.mcp.url
Initialize the Composio client and create a Tool Router session

Connect to AI Agent

python
import asyncio

options = ClaudeAgentOptions(
    permission_mode='bypassPermissions',
    mcp_servers={
        'tool_router': {
            'type': 'http',
            'url': url,
            'headers': {
                'x-api-key': 'your-composio-api-key'
            }
        }
    },
    system_prompt='You are a helpful assistant with access to Circleci tools.',
    max_turns=10
)

async def main():
    async with ClaudeSDKClient(options=options) as client:
        await client.query('List all pipelines for my project')
        async for message in client.receive_response():
            if hasattr(message, 'content'):
                for block in message.content:
                    if hasattr(block, 'text'):
                        print(block.text)

asyncio.run(main())
Use the MCP server with your AI agent

Why Use Composio?

AI Native Circleci Integration

  • Supports both Circleci MCP and direct API based integrations
  • Structured, LLM-friendly schemas for reliable tool execution
  • Rich coverage for reading, writing, and querying your Circleci builds, jobs, and pipelines

Managed Auth

  • Built-in API key handling with secure credential storage
  • Central place to manage, scope, and revoke Circleci access
  • Per user and per environment credentials instead of hard-coded keys

Agent Optimized Design

  • Tools are tuned using real error and success rates to improve reliability over time
  • Comprehensive execution logs so you always know what ran, when, and on whose behalf

Enterprise Grade Security

  • Fine-grained RBAC so you control which agents and users can access Circleci
  • Scoped, least privilege access to Circleci resources
  • Full audit trail of agent actions to support review and compliance

Frequently Asked Questions

Do I need my own developer credentials to use Circleci with Composio?

Yes, Circleci requires you to configure your own API key credentials. Once set up, Composio handles secure credential storage and API request handling for you.

Can I use multiple toolkits together?

Yes! Composio's Tool Router enables agents to use multiple toolkits. Learn more.

Is Composio secure?

Composio is SOC 2 and ISO 27001 compliant with all data encrypted in transit and at rest. Learn more.

What if the API changes?

Composio maintains and updates all toolkit integrations automatically, so your agents always work with the latest API versions.

Used by agents from

Context
Letta
glean
HubSpot
Agent.ai
Altera
DataStax
Entelligence
Rolai
Context
Letta
glean
HubSpot
Agent.ai
Altera
DataStax
Entelligence
Rolai
Context
Letta
glean
HubSpot
Agent.ai
Altera
DataStax
Entelligence
Rolai

Never worry about agent reliability

We handle tool reliability, observability, and security so you never have to second-guess an agent action.