Cursor Origin
The Origin MCP Server: Endpoints, Tools and Permissions
The Origin MCP server gives agents access to repositories and pull requests hosted on Origin. It has two endpoints, https://api.origin.cursor.com/mcp for every tool and /mcp/readonly for read-only tools, and lists 36 tools for browsing, search, commits, pull requests, reviews, labels, checks and rulesets. For now it works only in Cursor and Grok Bot.

On this page
What is the Origin MCP server?
The Origin MCPModel Context Protocol. A standard that lets an AI agent pull in context from outside the repo, like Jira tickets or internal docs. Press Enter for the full definition. server lets an agent work with code hosted on Origin without you writing API calls. Like the rest of Origin, it is in Early Beta and subject to change. For now it runs only in Cursor and Grok BotAn early AI teammate product from SpaceXAI and Cursor that works across apps on a persistent cloud computer and asks for approval on selected actions; launch materials describe it as beta, but Cursor says Beta Services terms do not apply. Press Enter for the full definition., and Cursor says support for other agent harnesses is coming soon.
Its tools cover repository browsing and search, commits and branches, pull request reads and writes, reviews and comments, labels, reviewers and checks. They see only repositories hosted on Origin at origin.cursor.com, and a repository that mirrors to Origin counts as hosted there. Each tool addresses a repository by its Origin namespace (owner) and repository name.
That addressing rule catches agents written for GitHub. The tool schemas say a GitHub owner or organization name is not an Origin namespace unless list_namespaces returns it. Take the owner from list_namespaces or from an earlier Origin result, and don't assume the GitHub name carries over.
This is covered hands-on in Cursor Compile 2026 — 1 short Unit, free to read.
Rather do it than read about it? Run 11 interactive Cursor walkthroughs in a simulated editor. Free, no account needed.
Which endpoint and transport does the Origin MCP server use?
There are two endpoints and one transport. The endpoint you choose decides, before any call, whether the agent can write at all.
- URL
https://api.origin.cursor.com/mcp- Tools listed
- Every tool the caller can use.
- URL
https://api.origin.cursor.com/mcp/readonly- Tools listed
- Read-only tools only. Tools that write are hidden and refused.
| URL | Tools listed |
|---|---|
https://api.origin.cursor.com/mcp | Every tool the caller can use. |
https://api.origin.cursor.com/mcp/readonly | Read-only tools only. Tools that write are hidden and refused. |
Endpoints from Cursor's Origin MCP documentation, checked October 28, 2026.
Sending the header x-mcp-readonly: true to /mcp has the same effect as calling /mcp/readonly. Use it when a client lets you set headers but not change the URL. The server speaks MCPModel Context Protocol. A standard that lets an AI agent pull in context from outside the repo, like Jira tickets or internal docs. Press Enter for the full definition. over stateless streamable HTTP and supports tools only. Send each JSON-RPC message as a POST with Content-Type: application/json, and expect plain JSON back, with no sessions and no server-sent event streams.
What can an agent do with the 36 Origin MCP tools?
Cursor's tool reference lists every tool with an access class. The table below groups them by what they touch.
- Area
- Repositories
- Tools
get_repository,list_repositories,list_namespaces,create_repository- Access
- Read-only, except
create_repository, which writes
- Area
- Code and history
- Tools
get_file_contents,get_git_tree,grep_contents,list_branches,list_commits,commit_read,compare_commits- Access
- Read-only
- Area
- Mirrors
- Tools
sync_mirror- Access
- Destructive, reaches outside Origin
- Area
- Pull request reads
- Tools
list_pull_requests,search_pull_requests,pull_request_read,get_pull_request_attachment,checks_read- Access
- Read-only
- Area
- Pull request changes
- Tools
create_pull_request,update_pull_request,update_pull_request_base,merge_pull_request- Access
- Writes;
merge_pull_requestis destructive
- Area
- Reviews and comments
- Tools
- Create, update and dismiss reviews; create and update comments; inline comments; reply to threads, and resolve or reopen them
- Access
- Writes content other people see; dismissing a review is destructive
- Area
- Labels and reviewers
- Tools
update_pull_request_labels,create_label,request_pull_request_reviewers,remove_pull_request_reviewers- Access
- Label tools write; reviewer tools write content other people see
- Area
- Policy
- Tools
list_rulesets,get_ruleset,get_repository_access- Access
- Read-only
| Area | Tools | Access |
|---|---|---|
| Repositories | get_repository, list_repositories, list_namespaces, create_repository | Read-only, except create_repository, which writes |
| Code and history | get_file_contents, get_git_tree, grep_contents, list_branches, list_commits, commit_read, compare_commits | Read-only |
| Mirrors | sync_mirror | Destructive, reaches outside Origin |
| Pull request reads | list_pull_requests, search_pull_requests, pull_request_read, get_pull_request_attachment, checks_read | Read-only |
| Pull request changes | create_pull_request, update_pull_request, update_pull_request_base, merge_pull_request | Writes; merge_pull_request is destructive |
| Reviews and comments | Create, update and dismiss reviews; create and update comments; inline comments; reply to threads, and resolve or reopen them | Writes content other people see; dismissing a review is destructive |
| Labels and reviewers | update_pull_request_labels, create_label, request_pull_request_reviewers, remove_pull_request_reviewers | Label tools write; reviewer tools write content other people see |
| Policy | list_rulesets, get_ruleset, get_repository_access | Read-only |
Eighteen of the 36 tools appear on the read-only endpoint. One of them, grep_contents, matches a regular expression case-sensitively unless you set literal or caseInsensitive. It returns at most 1000 matching occurrences and sets limitHit when it reaches that cap. There is no pagination, so to reach other matches you narrow the query, filterPath, includes or excludes. Context lines before and after a match are capped at 10 each.
How do the attachment and merge tools work?
get_pull_request_attachment fetches the images and recordings pasted into a pull request description, review or comment. pull_request_read returns them as Cursor upload URLs, which need a signed-in browser, so the agent passes each URL to this tool exactly as it was returned. Small images come back inline. Larger images, recordings and other files come back as a short-lived URL the agent can fetch without further credentials.
Cursor's MCPModel Context Protocol. A standard that lets an AI agent pull in context from outside the repo, like Jira tickets or internal docs. Press Enter for the full definition. pages limit what the server will fetch: only the pull request's own upload URLs, only when the URL appears in that pull request's text, and only for a caller who can read the pull request. Origin's release notes for the week of October 19 add a case those pages don't list yet. The tool can also fetch cloud agent screenshots and recordings linked in a pull request, for users who can view that agent.
merge_pull_request understands stacks. It can land a pull request, or a stack up to and including it. On a stack, it lands every open pull request from the stack root through the target in a single commit, and it checks every member first and lands nothing if one is blocked.
The call requires the pull request's expected head SHA and takes an optional mergeMethod of merge or squash. Where a merge queue owns the branch, a single pull request is queued instead. mergeCommitSha and mergedPrefix then come back empty, because nothing has landed yet. If Origin queues a stack as one merge queue entry, its members land in one commit or none do.
How do permissions and confirmation work?
Tool calls are attributed to you, and calls from Grok BotAn early AI teammate product from SpaceXAI and Cursor that works across apps on a persistent cloud computer and asks for approval on selected actions; launch materials describe it as beta, but Cursor says Beta Services terms do not apply. Press Enter for the full definition. show as your name via Grok Bot. Your access and the client's scopes both limit what a tool can do. The same permission checks and rate limits apply as for the equivalent Origin API request.
Each tool lists its required scopes. For example, grep_contents needs repository:contents:read, and merge_pull_request needs repository:contents:write. Some write actions, such as approving a pull request, are available only in Grok BotAn early AI teammate product from SpaceXAI and Cursor that works across apps on a persistent cloud computer and asks for approval on selected actions; launch materials describe it as beta, but Cursor says Beta Services terms do not apply. Press Enter for the full definition..
Tools that are destructive or hard to undo set _meta["cursor/requiresConfirmation"]: true in tools/list, and Cursor clients show an approval prompt before every call to such a tool. Six tools in the reference carry the flag: create_repository, sync_mirror, update_pull_request_base, merge_pull_request, dismiss_pull_request_review and update_pull_request_review_thread. Other MCPModel Context Protocol. A standard that lets an AI agent pull in context from outside the repo, like Jira tickets or internal docs. Press Enter for the full definition. clients can use the same flag, or the standard destructiveHint annotation, to decide when to ask the user.
The read-only endpoint hides write tools and also refuses them, so a misconfigured client can't call a hidden tool by name. On the full endpoint, your scopes and repository access still apply, so a visible tool can fail with a forbidden result.
How does the Origin MCP server report errors and paginate?
A tool that succeeds returns its data as JSON, once in the text content and again as the structured content. A tool that fails returns a normal MCPModel Context Protocol. A standard that lets an AI agent pull in context from outside the repo, like Jira tickets or internal docs. Press Enter for the full definition. tool result with isError: true. Its text content is a readable message followed by a request ID. Its structured content carries a category, a message and a requestId, plus retryAfterSeconds and a rateLimit object only when the call was rate limited.
The category is one of not_found, forbidden, quota_exceeded, conflict, validation_error or upstream_failure. Cursor asks you to include the request ID when you report a problem. Unknown tools and invalid parameters behave differently: they return JSON-RPC errors instead of tool results.
List tools page like the Origin API. To read the next page, pass the returned nextPageToken as pageToken with the same filters. A client should store the filters alongside the token, because every page request has to repeat them.
Frequently asked questions
Which clients can use the Origin MCP server?
Only Cursor and Grok Bot for now. Cursor's docs say support for other agent harnesses is coming soon, and Origin itself is in Early Beta and subject to change.
How do I give an agent read-only access to Origin repositories?
Point the client at https://api.origin.cursor.com/mcp/readonly, or send the header x-mcp-readonly: true to /mcp. Tools that write are hidden and refused on that endpoint, and 18 of the 36 tools remain.
Does the Origin MCP server support streaming or sessions?
No. It speaks MCP over stateless streamable HTTP, supports tools only, and returns plain JSON for each POST, with no sessions or server-sent event streams.
Can the Origin MCP server see my GitHub repositories?
Only those hosted on Origin. A repository that mirrors to Origin counts as hosted there, but tools address it by its Origin namespace and name, which may differ from the GitHub owner.
Sources & last verified
- Cursor docs: Origin MCP
- Cursor docs: Origin MCP tool reference
- Cursor docs: Origin API
- Cursor docs: Grok Bot
- Cursor docs: Origin release notes
Cursor ships frequently. Facts verified against primary sources on October 28, 2026.