How to connect Circleci to Claude

Connect Claude Web, Desktop and Cowork to Circleci MCP. Trigger a new pipeline on main branch, list all pipelines for backend service, and more using natural language, with authentication handled for you.

Circleci logoCircleci
Api Key

Circleci is a leading continuous integration and delivery platform for automating code builds, tests, and deployments. It helps teams ship quality software faster by streamlining DevOps workflows.

71 Tools

Introduction

Claude is Anthropic's AI assistant, available on the web, in the desktop app, and on mobile. Cowork is its agent for knowledge work, and it runs on all of those surfaces too. Connected to your apps, Claude can work with your files and services to accomplish complex tasks on your behalf.

This guide walks you through the easiest and most secure way to connect your Circleci account to Claude via Composio Connect, enabling it to trigger a new pipeline on main branch, list all pipelines for backend service, get test results from last successful build, and more such actions on your behalf without compromising your account security.

Setup is the same on Claude Web, Desktop, and Cowork, and you only need to do it once. The connector is tied to your account, so it's available in all three.

For exact tool slugs and parameter tables, see the tool catalog in the Composio docs.

Also integrate Circleci with

Connecting Circleci to Claude Web, Desktop, and Cowork

Two ways to add the Composio connector. Pick whichever you prefer.

1. Add with one click

Click the button. Claude opens with the Composio connector filled in. Click Add, then go to step 2.

Add to Claude

Add manually

In Claude Desktop, click Customize in the left sidebar, then select Connectors and click the + icon at the top.

Claude Desktop connectors screen with Add custom connector selected

Click Add custom connector and paste in the Composio MCP server URL:

bash
https://connect.composio.dev/mcp
Add custom connector dialog with Composio MCP server URL

2. Authorize in your browser

Click Connect. You'll be redirected to a browser window where you can authorize Composio to continue.

Composio authorization screen for Claude Web, Desktop, and Cowork

3. Connect your Circleci account

Back in Claude, ask it to connect to Circleci or give it any Circleci-related task.

For example, ask Claude to:

  • "Trigger a new pipeline on main branch"
  • "List all pipelines for backend service"
  • "Get test results from last successful build"

It will prompt you to authenticate and authorize access.

That's it. Composio's tools are now available in Claude, and your Circleci account is ready to use.

What is the Circleci Claude Connector, and what's possible with it?

The Circleci MCP server is an implementation of the Model Context Protocol that connects your AI agent and assistants like Claude, Cursor, etc directly to your Circleci account. It provides structured and secure access to your Circleci projects and pipelines, so your agent can trigger builds, fetch job artifacts, monitor workflows, and analyze test results on your behalf.

  • Automated pipeline triggering and management: Let your agent start new builds for specific branches or tags, enabling continuous integration workflows without manual intervention.
  • Workflow and job status monitoring: Ask your agent to fetch detailed information about jobs and workflows, including status, timing, and execution environment, to stay on top of your CI/CD processes.
  • Artifact and test result retrieval: Have the agent collect job artifacts or extract comprehensive test metadata and failure messages for easier debugging and reporting.
  • Pipeline and runner insights: Get your agent to list all pipelines for a project or enumerate available self-hosted runners, making it simple to manage and audit your Circleci resources.
  • User and configuration access: Retrieve user profile details or fetch pipeline YAML configurations as needed for documentation, troubleshooting, or workflow optimization.

Troubleshooting

1. Why does Claude not use the Composio connector for Circleci?

The connector can show as connected, but Claude must use it in each Circleci conversation.

  • Click + at the lower left of the chat, or type /.
  • Hover Connectors.
  • Turn on Composio.
  • Ask Claude to connect to Circleci again.

2. Why does Claude show an MCP server error before Circleci connects?

Claude can show Couldn't reach the MCP server or Authorization with the MCP server failed when you add the connector for Circleci.

  • Check that the connector URL is https://connect.composio.dev/mcp.
  • Connectors run from Anthropic's cloud, so your device network is usually not the problem.
  • Add the connector again from Customize > Connectors, then ask Claude to connect Circleci.
  • If it fails again, send the error and the ofid_ reference id to support@composio.dev.

3. Why does the Circleci authorization link not work?

The Composio connector is one server. Your Circleci account connects separately when Claude asks for it.

  • If the browser does not open, or the link expires, ask Claude to retry the Circleci connection.
  • Composio creates a fresh Circleci authorization link.
  • Open that link in your browser and finish the Circleci sign-in.

4. Why do Circleci actions fail after they worked before?

The Circleci connection can expire or lose permission.

  • Ask Claude to inspect the Circleci connection.
  • If the connection is unhealthy, disconnect it when Claude prompts you.
  • Reconnect the Circleci account and retry the action.
  • If Claude shows a permission prompt, approve it before Claude changes data in Circleci.
  • If the action still fails with a permission error, check that the connected account has that permission in Circleci itself.

5. How do I switch to a different Circleci account?

Claude can manage the Circleci connection for you.

  • Ask Claude to disconnect or delete the current Circleci account.
  • Ask Claude to connect Circleci again.
  • Open the new Composio authorization link for Circleci.
  • Sign in with the other Circleci account in the browser.
  • After the account connects, ask Claude to retry the Circleci task.

6. Why is my Circleci connection missing in Claude Desktop or on a Team plan?

The connector belongs to your Claude account, so your Circleci connection works in Claude Web, Desktop, and Cowork.

  • In Claude Desktop, open Customize > Connectors.
  • Next to Composio, click ⋮ and click Clear cache.
  • If Circleci tools still do not appear, click ⋮, disconnect, remove the connector, and add it again.
  • On Team or Enterprise, an Owner or Primary Owner must enable the connector before you can connect Circleci.
TOOLS

Supported Tools

Every Circleci action and event your agent gets out of the box.

Cancel Workflow

Cancel a running CircleCI workflow.

Create Context

Tool to create a new context in CircleCI.

Create Context (GraphQL)

Create a CircleCI context for an organization using the GraphQL API.

Create Context Restriction

Tool to create a context restriction in CircleCI.

Create Organization Orb Allowlist

Tool to create a new URL Orb allow-list entry for an organization.

Create Organization Project

Tool to create a new project within a CircleCI organization.

Create Organization Group

Tool to create a group in an organization.

Create Project Environment Variable

Tool to create a new environment variable for a CircleCI project.

Create Usage Export Job

Tool to create a usage export job for a CircleCI organization.

Delete Context (GraphQL)

Delete a CircleCI context by its UUID using the REST API.

Delete Context Restriction

Tool to delete a context restriction by its ID.

Delete Namespace and Related Orbs

Tool to delete a CircleCI registry namespace and all its associated orbs.

Delete Namespace Alias

Tool to remove a namespace alias by name in CircleCI.

Delete Organization Orb Allowlist Entry

Tool to remove an entry from the organization's URL orb allow-list.

Delete Organization Group

Tool to delete a group from a CircleCI organization.

Delete Project

Tool to delete a CircleCI project and its settings.

Delete Project Environment Variable

Tool to delete an environment variable from a CircleCI project.

Get Context

Tool to retrieve a context by its unique ID.

Get Current User

Tool to retrieve information about the currently authenticated user.

Get Flaky Tests

Tool to get flaky tests for a project.

Get Job Artifacts

Retrieves artifacts (output files like test results, logs, build binaries, reports) produced by a CircleCI job.

Get Job Details

Tool to fetch details of a specific job within a project.

Get Legacy Build Details

Retrieve a legacy CircleCI v1.1 build record.

Get Orb Details

Tool to query detailed information about a CircleCI orb using the GraphQL API.

Get Orb Version

Tool to retrieve detailed information about a specific CircleCI orb version via GraphQL.

Get Organization

Tool to retrieve organization details from CircleCI using GraphQL query.

Get Organization Group

Tool to retrieve a group in an organization.

Get Pipeline

Retrieve metadata for a CircleCI pipeline by its UUID.

Get Pipeline Config

Tool to fetch pipeline configuration by ID.

Get Pipeline Definition

Tool to retrieve a pipeline definition by project and definition ID.

Get Pipeline Values

Retrieve the runtime values resolved for a CircleCI pipeline.

Get Project

Tool to retrieve a CircleCI project by its slug.

Get Project Workflows

Get summary metrics for a project's workflows, including success rates, duration, throughput, and credits used.

Get Test Metadata

Tool to fetch test metadata for a specific job.

Get Usage Export Job

Tool to retrieve a usage export job by organization ID and job ID.

Get User Information

Tool to retrieve information about a CircleCI user by their unique ID.

Get Workflow Summary

Tool to get metrics and trends for a workflow.

Inspect Workflow

Inspect a workflow's summary and one page of its jobs.

List Context Environment Variables

List environment variable names and metadata for a CircleCI context, with pagination.

List Insights Branches

Tool to get all branches for a project from CircleCI Insights.

List Insights Summary

Tool to get summary metrics with trends for the entire organization and for each project.

List Namespace Orbs

Tool to list orbs in a CircleCI registry namespace with pagination support.

List Orb Categories

Tool to retrieve all CircleCI orb categories with pagination support.

List Orbs

Tool to list CircleCI orbs with pagination support via GraphQL API.

List Organization Groups

List groups in a CircleCI organization, with pagination support.

List Pages Summary

Tool to get summary metrics and trends for a project across its workflows and branches.

List Pipeline Definitions

List pipeline definitions for a specific project, including their configuration sources.

List Pipelines

Tool to get a list of pipelines for an organization.

List Pipelines for Project

List pipelines for a specific project, optionally filtered by branch or current user.

List Project Environment Variables

List project-level environment variables for a CircleCI project.

List Project Schedules

List scheduled pipeline triggers for a specific project.

List Self-Hosted Runners

List CircleCI self-hosted runners for exactly one namespace or resource class.

List User Collaborations

Tool to retrieve organizations where the authenticated user has access.

List Workflows by Pipeline ID

Tool to list all workflows associated with a specific pipeline.

List Workflows Jobs Workflows

Tool to get summary metrics for a project workflow's jobs.

List Workflows Test Metrics

Tool to get test metrics for a project's workflows.

Query Context

Retrieve a CircleCI context by UUID using the GraphQL API, including its ID, name, and creation time.

Query Namespace Exists

Tool to determine if a namespace exists in the CircleCI registry.

Query Orb Category ID

Query a CircleCI orb category ID by category name.

Query Orb Exists

Tool to check if an orb exists in CircleCI registry and retrieve its privacy status.

Query Orb ID

Tool to fetch an orb's ID and optionally its namespace ID by orb name.

Query Orb Latest Version

Query the latest published version of a CircleCI orb for dependency management or updates.

Query Orb Source

Tool to retrieve source code of a specific CircleCI orb version via GraphQL.

Query Plan Metrics

Tool 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 Namespace

Tool to rename a CircleCI namespace by its UUID identifier.

Rerun Workflow

Rerun a CircleCI workflow, optionally selecting jobs or failed work.

Store Environment Variable

Tool to store an environment variable in a CircleCI context using GraphQL mutation.

Trigger Pipeline

Triggers a new CI/CD pipeline run for a specified CircleCI project.

Upsert Context Environment Variable

Tool to add or update an environment variable in a CircleCI context.

Validate Orb Config

Tool to validate CircleCI orb YAML configuration using the orbConfig GraphQL query.

FAQ

Frequently asked questions

Start with Circleci.It takes 30 seconds.

Managed auth, hosted MCP servers, and every Circleci tool your agent needs.Free to start.

Start building