[Home](/index.md) › [MCP servers](/mcp.md) › Origin MCP server

# Origin MCP server

MCP server

- 40 callable tools
- 6 capabilities

[Installation guide](https://cursor.com/docs/api/origin/mcp.md)

## Overview

Cursor publishes this MCP server, which gives agents access to repositories and pull requests hosted on Origin (origin.cursor.com). It works with repository browsing and search, commits, branches, pull requests, reviews, comments, labels, reviewers and checks.

### Capabilities

- Browse repositories, branches, commits, file contents and git trees
- Search file contents and pull requests
- Read pull requests, reviews, comments, review threads and attachments
- Create and update pull requests, reviews, comments and labels
- Request and remove reviewers and merge or dismiss reviews
- Read and rerun checks and inspect repository rulesets and access

## Works with

The products your agent can work with through this server.

- [Cursor](/tools/cursor.md): AI coding agent and editor

## Tools

The callable functions your agent uses to work with this server.

### `get_repository`

Read-only Get one Origin repository by owner and name, including default branch, mirror state, visibility, and merge settings.

### `list_repositories`

Read-only List Origin repositories belonging to an owner slug.

### `list_namespaces`

Read-only List the Origin namespaces (owner slugs) the caller can list repositories in, ordered by slug.

### `list_group_members`

Read-only List the direct user members of one Origin review or ownership group visible to the caller for a repository.

### `create_repository`

Writes Create an empty Origin-hosted repository.

### `get_file_contents`

Read-only Read one path at a ref in an Origin-hosted repository.

### `get_git_tree`

Read-only List a git tree in an Origin-hosted repository at a tree SHA, commit SHA, branch, tag, or HEAD.

### `grep_contents`

Read-only Search file contents across one Origin-hosted repository at a ref, which defaults to the default branch.

### `list_branches`

Read-only List branch names and tip commit SHAs for an Origin-hosted repository.

### `list_commits`

Read-only List commits from a branch or starting ref in an Origin-hosted repository, optionally filtered by lists of exact git author or committer emails, by in

### `commit_read`

Read-only Read one commit in an Origin-hosted repository.

### `compare_commits`

Read-only Compare two refs of an Origin-hosted repository relative to their merge base.

### `sync_mirror`

Destructive, reaches outside Origin Sync a mirrored repository from upstream, waiting for a ref or optional SHA.

### `list_pull_requests`

Read-only List pull requests in an Origin-hosted repository, filtered by state, head, author, base, stackId, mergeCommitShas, or inclusive mergedSince/mergedUnt

### `search_pull_requests`

Read-only Search pull requests across the Origin-hosted repositories the caller can read, written in GitHub's pull request search syntax.

### `pull_request_read`

Read-only Read one Origin-hosted pull request through a single view: summary, files, commits, reviews, comments, or threads.

### `get_pull_request_requirements`

Read-only Read what an open Origin-hosted pull request needs before it can merge, as Origin evaluates it at headSha.

### `get_pull_request_attachment`

Read-only Fetch one image, recording, or file attached to an Origin-hosted pull request.

### `upload_pull_request_attachment`

Writes Upload one image or video for an Origin-hosted repository's pull requests and return url, a cursor.com user-attachments URL that only readers of the repo

### `create_pull_request`

Writes Create a pull request from an already-pushed branch.

### `update_pull_request`

Writes Update a pull request's title, description, and lifecycle through the public fields.

### `update_pull_request_base`

Writes Retarget a pull request's base branch, stack it on another pull request, or move it off its stack.

### `merge_pull_request`

Destructive Merge a pull request, or a stack up to and including it.

### `create_pull_request_review`

Writes content other people see Submit a comment, approval, or request-changes review on a pull request.

### `update_pull_request_review`

Writes content other people see Correct the body of an existing pull request review.

### `dismiss_pull_request_review`

Destructive Dismiss a submitted approve or request-changes review.

### `create_pull_request_comment`

Writes content other people see Create a general discussion comment on a pull request.

### `create_pull_request_inline_comment`

Writes content other people see Create a file-level, single-line, or line-range inline comment, optionally against a specific pull request version.

### `reply_pull_request_review_thread`

Writes content other people see Reply to an existing review thread by thread ID.

### `update_pull_request_review_thread`

Writes content other people see Resolve or reopen a review thread by thread ID.

### `update_pull_request_comment`

Writes content other people see Correct an existing pull request comment body.

### `update_pull_request_labels`

Writes Replace every label on a pull request with the provided names.

### `create_label`

Writes Create a repository label so update\_pull\_request\_labels can apply it.

### `request_pull_request_reviewers`

Writes content other people see Request reviewers on a pull request.

### `remove_pull_request_reviewers`

Writes content other people see Remove requested reviewers from a pull request.

### `checks_read`

Read-only Read checks for one target in an Origin-hosted repository: a pull request, commit, suite, or run.

### `rerun_checks`

Writes content other people see Ask the CI app that reported a check run to run it again.

### `list_rulesets`

Read-only List the rulesets on an Origin-hosted repository as summaries: id, name, kind, enforcement, included and excluded ref name patterns, the rule types pr

### `get_ruleset`

Read-only Read one ruleset on an Origin-hosted repository by its id from list\_rulesets: name, description, kind, enforcement, included and excluded ref name pa

### `get_repository_access`

Read-only Read who can access an Origin-hosted repository.

## Installation

Follow the installation guide for supported clients, authentication and required permissions.

### Add Origin MCP server to Claude Code

Run this in your terminal:

```sh
claude mcp add --transport http origin https://api.origin.cursor.com/mcp
```

If the server asks you to sign in, run `/mcp` in Claude Code and follow the browser prompt.

### Add Origin MCP server to Cursor

Add it with the Add to Cursor button below, or add it to `.cursor/mcp.json` in your project (`~/.cursor/mcp.json` for every project):

[Add to Cursor](cursor://anysphere.cursor-deeplink/mcp/install?name=origin&config=eyJ1cmwiOiJodHRwczovL2FwaS5vcmlnaW4uY3Vyc29yLmNvbS9tY3AifQ%3D%3D)

```json
{
  "mcpServers": {
    "origin": {
      "url": "https://api.origin.cursor.com/mcp"
    }
  }
}
```

### Add Origin MCP server to VS Code

Add it to `.vscode/mcp.json` in your workspace. VS Code uses `servers` rather than `mcpServers`. Or run MCP: Add Server from the Command Palette and choose HTTP.

```json
{
  "servers": {
    "origin": {
      "type": "http",
      "url": "https://api.origin.cursor.com/mcp"
    }
  }
}
```

### Add Origin MCP server to Codex

Run this in your terminal:

```sh
codex mcp add origin --url https://api.origin.cursor.com/mcp
```

Or add it to `~/.codex/config.toml`:

```toml
[mcp_servers.origin]
url = "https://api.origin.cursor.com/mcp"
```

If the server uses OAuth, sign in with `codex mcp login origin`.

### Add Origin MCP server to Claude

Add it as a custom connector with this URL:

```
https://api.origin.cursor.com/mcp
```

1. Open Customize, then Connectors.
2. Click + Add, then Add custom connector.
3. Name it, paste the URL and click Continue.
4. Choose how to sign in, then click Add.

On Team and Enterprise plans, an Owner adds it in Organization settings first, then members connect it.

### Add Origin MCP server to other clients

For any other client that connects to remote MCP servers over HTTP, use this URL:

```
https://api.origin.cursor.com/mcp
```

[Read the installation guide](https://cursor.com/docs/api/origin/mcp.md)

## Sources

Documentation and source code reviewed on 17 November 2026.

- [cursor.com/docs/api/origin/mcp.md](https://cursor.com/docs/api/origin/mcp.md)
- [cursor.com/docs/api/origin/mcp/tools.md](https://cursor.com/docs/api/origin/mcp/tools.md)
