Circleci MCP server for AI agents and assistants

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.

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

Try Circleci now

Type what you want done — sign in and watch it run live in the Tool Router playground.

TOOL ROUTER PLAYGROUND
Circleci
Try asking
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.

SETUP GUIDE

Connect Circleci MCP Tool with your Agent

1

Install Composio

typescript
npm install @composio/core ai @ai-sdk/mcp @ai-sdk/openai
Install the Composio SDK and your agent framework
2

Create a session with MCP enabled

typescript
import { Composio } from "@composio/core";

const composio = new Composio();
const { mcp } = await composio.create("your-user-id", {
  toolkits: ["circleci"],
  mcp: true,
});
Create a session scoped to Circleci and read its MCP URL and headers
3

Connect your agent to the MCP server

typescript
import { createMCPClient } from "@ai-sdk/mcp";
import { openai } from "@ai-sdk/openai";
import { generateText, stepCountIs } from "ai";

const client = await createMCPClient({
  transport: { type: "http", url: mcp.url, headers: mcp.headers },
});

const { text } = await generateText({
  model: openai("gpt-5.6-sol"),
  tools: await client.tools(),
  prompt: "List all pipelines for my project last week",
  stopWhen: stepCountIs(10),
});

console.log(text);
await client.close();
Pass the session's MCP URL and headers to your agent and run a Circleci request
SETUP GUIDE

Connect Circleci API Tool with your Agent

1

Install Composio

typescript
npm install @composio/core @composio/openai openai
Install the Composio SDK, the OpenAI provider, and the OpenAI SDK
2

Create a Composio session

typescript
import OpenAI from "openai";
import { Composio } from "@composio/core";
import { OpenAIResponsesProvider } from "@composio/openai";

const composio = new Composio({ provider: new OpenAIResponsesProvider() });
const client = new OpenAI();

const session = await composio.create("your-user-id", { toolkits: ["circleci"] });
const tools = await session.tools();
Initialize Composio with the OpenAI Responses provider and create a session scoped to Circleci
3

Run Circleci tools with your agent

typescript
let response = await client.responses.create({
  model: "gpt-5.6-sol",
  tools,
  input: [{ role: "user", content: "List all pipelines for my project last week" }],
});

while (response.output.some((o) => o.type === "function_call")) {
  const outputs = await composio.provider.handleToolCalls(session, response.output);
  response = await client.responses.create({
    model: "gpt-5.6-sol",
    tools,
    previous_response_id: response.id,
    input: outputs,
  });
}

console.log(response.output_text);
Send a request, execute the Circleci tool calls through the session, and print the final answer

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

Rolling this out across your team?

Give your team centralized access control across every framework with Composio’s MCP Gateway.

EXPLORE MCP GATEWAY
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