CircleCI MCP server
65 operations0 webhooks
Continuous integration and delivery platform for automated testing and deployment pipelines.
Try CircleCI with your agent
Connect CircleCI, then paste this into Claude, ChatGPT or Cursor. For ideas from other apps, see the use cases.
Using Corsair, show me what you can do in CircleCI on my account, then run one read-only example and show me the result.
CircleCI tools and triggers
Tools are what your agent can do in CircleCI through Corsair's MCP server. Triggers are the CircleCI events a routine can start from.
Orbs
- Get DetailsRead-only
Fetch an orb's metadata and versions
orbs.getDetails
- Get VersionRead-only
Fetch one orb version
orbs.getVersion
- List CategoriesRead-only
List orb categories
orbs.listCategories
- List Namespace OrbsRead-only
List orbs in a namespace
orbs.listNamespaceOrbs
- List OrbsRead-only
List orbs across the registry
orbs.listOrbs
- Query Category IdRead-only
Fetch a category's id by name
orbs.queryCategoryId
- Query ExistsRead-only
Check whether an orb exists
orbs.queryExists
- Query IdRead-only
Fetch an orb's id by name
orbs.queryId
- Query Latest VersionRead-only
Fetch an orb's latest published version
orbs.queryLatestVersion
- Query SourceRead-only
Fetch an orb version's source YAML
orbs.querySource
- Validate ConfigRead-only
Validate orb YAML
orbs.validateConfig
Contexts
- CreateWrite
Create a context (REST)
contexts.create
- Create RestrictionWrite
Add a restriction to a context
contexts.createRestriction
- Delete RestrictionDestructive
Remove a restriction from a context
contexts.deleteRestriction
- GetRead-only
Retrieve a context by id
contexts.get
- List Env VarsRead-only
List a context's environment variables
contexts.listEnvVars
- Upsert Env VarWrite
Add or update a context environment variable (REST)
contexts.upsertEnvVar
Insights
- BranchesRead-only
List branches with workflow runs
insights.branches
- Flaky TestsRead-only
Get flaky tests for a project
insights.flakyTests
- Org SummaryRead-only
Get org-wide summary metrics with trends
insights.orgSummary
- Pages SummaryRead-only
Get summary metrics and trends for a project
insights.pagesSummary
- Plan MetricsRead-only
Get plan/credit-usage metrics by project and org for a date range (same route as insights.orgSummary)
insights.planMetrics
- Project WorkflowsRead-only
Get summary metrics for all of a project's workflows
insights.projectWorkflows
Contexts Graph QL
- CreateWrite
Create a context (GraphQL)
contextsGraphQL.create
- DeleteDestructive
Permanently delete a context and its environment variables (GraphQL)
contextsGraphQL.delete
- QueryRead-only
Retrieve a context by id (GraphQL)
contextsGraphQL.query
- Remove Env VarDestructive
Remove a context environment variable (GraphQL)
contextsGraphQL.removeEnvVar
- Store Env VarWrite
Add or update a context environment variable (GraphQL)
contextsGraphQL.storeEnvVar
Groups
- CreateWrite
Create an organization group
groups.create
- DeleteDestructive
Permanently delete an organization group
groups.delete
- GetRead-only
Retrieve an organization group
groups.get
- ListRead-only
List an organization's groups
groups.list
Namespace
- DeleteDestructive
Permanently delete a namespace and all its orbs
namespace.delete
- Delete AliasDestructive
Remove a namespace alias (GraphQL)
namespace.deleteAlias
- Query ExistsRead-only
Check whether a namespace name exists
namespace.queryExists
- RenameWrite
Rename a namespace
namespace.rename
Pipelines
- Get ConfigRead-only
Fetch a pipeline's config
pipelines.getConfig
- ListRead-only
List pipelines for an organization
pipelines.list
- List For ProjectRead-only
List a project's pipelines
pipelines.listForProject
- TriggerWrite
Start a new pipeline run on a branch or tag
pipelines.trigger
Workflows
- Get SummaryRead-only
Get metrics and trends for a workflow
workflows.getSummary
- List By Pipeline IdRead-only
List a pipeline's workflows
workflows.listByPipelineId
- List JobsRead-only
Get summary metrics for a workflow's jobs
workflows.listJobs
- List Test MetricsRead-only
Get test metrics for a workflow
workflows.listTestMetrics
Project Env Vars
- CreateWrite
Create a project environment variable
projectEnvVars.create
- DeleteDestructive
Delete a project environment variable
projectEnvVars.delete
- ListRead-only
List a project's environment variables
projectEnvVars.list
Projects
- CreateWrite
Follow a repository as a new project
projects.create
- DeleteDestructive
Permanently remove a project and its settings
projects.delete
- GetRead-only
Retrieve a project by slug
projects.get
User
- Get CurrentRead-only
Read the authenticated user's own profile
user.getCurrent
- Get InfoRead-only
Read another user's profile by id
user.getInfo
- List CollaborationsRead-only
List organizations the caller can collaborate on
user.listCollaborations
Orb Allowlist
- CreateWrite
Add a URL orb allow-list entry
orbAllowlist.create
- DeleteDestructive
Remove a URL orb allow-list entry
orbAllowlist.delete
Pipeline Definitions
- GetRead-only
Retrieve a pipeline definition
pipelineDefinitions.get
- ListRead-only
List a project's pipeline definitions
pipelineDefinitions.list
Usage Export
- CreateWrite
Create a usage export job
usageExport.create
- GetRead-only
Retrieve a usage export job
usageExport.get
Organization
- GetRead-only
Retrieve an organization by id (GraphQL)
organization.get
Runners
- ListRead-only
List self-hosted runners
runners.list
Schedules
- ListRead-only
List a project's scheduled pipeline triggers
schedules.list
Jobs
- Get ArtifactsRead-only
List a job's stored artifacts by number
jobs.getArtifacts
- Get DetailsRead-only
Fetch a job's status, timing and executor by number
jobs.getDetails
- Get Test MetadataRead-only
Fetch a job's stored test results by number
jobs.getTestMetadata
Connect CircleCI to Claude, ChatGPT or Cursor
- 1
Connect CircleCI in Corsair
Add your CircleCI API key once in Corsair. Corsair stores the credential encrypted and makes the CircleCI API calls for your agent, so it never goes into a prompt or a config file. Connect CircleCI
If your link lets the agent add apps, you can skip this: it gives you a sign-in link the first time it needs CircleCI. On a ChatGPT personal plan, connect CircleCI here first.
- 2
Add Corsair's MCP server to your agent
Every client uses the same address:
https://mcp.corsair.dev/mcpOpen Plugins → Add → Add custom connector, name it Corsair, paste the address, select Continue, then Add.Install Corsair from ChatGPT's plugin directory, connect it and sign in. A custom MCP server with the address works too, but personal plans get its read tools only.Add to Cursor / Grok BuildOr add this to~/.cursor/mcp.json. It opens Corsair to sign in the first time it connects.{ "mcpServers": { "corsair": { "url": "https://mcp.corsair.dev/mcp" } } }Run this, then run/mcpin Claude Code to sign in.claude mcp add --transport http corsair https://mcp.corsair.dev/mcpCodex, Antigravity, Gemini CLI, VS Code, Zed and other clients with OAuth sign-in work the same way. Clients without it, such as GitHub Copilot's coding agent, use a link's own address and an API key. Setup for every client
- 3
Sign in and choose what needs your approval
Your client opens Corsair to sign in. Pick a link: the apps your agent can use and a mode that decides what it may do without asking. In the default Cautious mode, CircleCI's read and write operations run right away and its 9 destructive operations wait for your approval. Strict mode asks before every write and refuses destructive operations, and Read mode allows reads only.
CircleCI works with
FAQ
Install corsair and @corsair-dev/circleci, add the CircleCI plugin, and connect with an API key. Then call methods like corsair.circleci.api.contexts.create() from your app. Corsair syncs data per tenant.
Yes. CircleCI requires an API key from your CircleCI account or developer dashboard. Create credentials with access that matches what you automate, then paste them into Corsair or connect through managed auth in Hub.
Yes. One Corsair client can hit CircleCI, GitHub, Notion, Stripe, and the rest. Trigger CircleCI from a webhook, push updates to Slack, or chain actions across plugins. Same tenant context across integrations, plain TypeScript.
Teams use Corsair for continuous integration and delivery platform for automated testing and deployment pipelines. Common builds include sync jobs, admin tooling, and agents that call CircleCI APIs from your backend. Local DB entities let you query synced CircleCI records without hitting the API on every read.
The SDK is open source. Self-host and you pay Corsair nothing for the integration layer. Hub bills for hosted auth and execution, not per CircleCI API call. Hub has a generous free tier. For hobby projects you can probably run the whole thing on free. Paid plans start to matter with more tenants or heavier traffic.
We maintain @corsair-dev/circleci in the open repo. When CircleCI ships API changes, upgrade the package. Your call sites stay typed. You should not need to rewrite the integration layer each time.
No. Corsair does not read your CircleCI data or hold individual access credentials. Credentials stay in your database. API calls run on your instance. We do not store CircleCI data on your behalf.
Yes. Add https://mcp.corsair.dev/mcp as a custom connector or MCP server in Claude, ChatGPT, Cursor, VS Code, Claude Code, Codex or any client that supports remote MCP servers with OAuth sign-in, then sign in to Corsair. On ChatGPT personal plans, custom servers currently get read tools only.
Yes. Put CircleCI on a link in Strict mode and every write waits for your approval, while destructive actions are refused. The default Cautious mode asks only before the 9 destructive CircleCI operations. You can change a link's mode at hub.corsair.dev/me.