-
Notifications
You must be signed in to change notification settings - Fork 659
feat(third_party): add Coinbase plugin #354
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
minupalaniappan
wants to merge
1
commit into
main
Choose a base branch
from
minu/plugin-coinbase
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+170
−0
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,54 @@ | ||
| { | ||
| "name": "coinbase", | ||
| "displayName": "Coinbase", | ||
| "version": "1.0.0", | ||
| "minClientVersions": { | ||
| "cursor": "3.13.0" | ||
| }, | ||
| "description": "Check balances, get quotes, and preview or place trades.", | ||
| "author": { | ||
| "name": "Cursor", | ||
| "email": "plugins@cursor.com" | ||
| }, | ||
| "homepage": "https://docs.cdp.coinbase.com/coinbase-for-agents/overview", | ||
| "repository": "https://github.com/cursor/plugins", | ||
| "license": "MIT", | ||
| "logo": "assets/logo.png", | ||
| "keywords": [ | ||
| "coinbase", | ||
| "crypto", | ||
| "trading", | ||
| "portfolio", | ||
| "balances", | ||
| "market data", | ||
| "advanced trade", | ||
| "mcp" | ||
| ], | ||
| "category": "integrations", | ||
| "tags": [ | ||
| "coinbase", | ||
| "finance", | ||
| "crypto", | ||
| "mcp" | ||
| ], | ||
| "variables": { | ||
| "type": "object", | ||
| "properties": { | ||
| "CLIENT_ID": { | ||
| "type": "string", | ||
| "title": "Coinbase OAuth Client ID", | ||
| "description": "OAuth client ID from the Coinbase Developer Platform portal (portal.cdp.coinbase.com \u2192 OAuth)." | ||
| }, | ||
| "CLIENT_SECRET": { | ||
| "type": "string", | ||
| "title": "Coinbase OAuth Client Secret", | ||
| "description": "OAuth client secret from the same Coinbase Developer Platform OAuth client." | ||
| } | ||
| }, | ||
| "required": [ | ||
| "CLIENT_ID", | ||
| "CLIENT_SECRET" | ||
| ] | ||
| }, | ||
| "mcpServers": "./mcp.json" | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| # Changelog | ||
|
|
||
| All notable changes to this plugin will be documented here. | ||
|
|
||
| ## 1.0.0 — initial release | ||
|
|
||
| - Added the `coinbase` MCP server pointing at Coinbase's hosted Streamable HTTP endpoint (`https://agents.coinbase.com/mcp`). | ||
| - Auth uses OAuth with Coinbase user login. Declared `CLIENT_ID` and `CLIENT_SECRET` plugin variables and forwarded them through MCP auth, since `login.coinbase.com` does not support dynamic client registration. | ||
| - Logo: Coinbase's official mark, from the `coinbase` GitHub organization. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,21 @@ | ||
| MIT License | ||
|
|
||
| Copyright (c) 2026 Cursor | ||
|
|
||
| Permission is hereby granted, free of charge, to any person obtaining a copy | ||
| of this software and associated documentation files (the "Software"), to deal | ||
| in the Software without restriction, including without limitation the rights | ||
| to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
| copies of the Software, and to permit persons to whom the Software is | ||
| furnished to do so, subject to the following conditions: | ||
|
|
||
| The above copyright notice and this permission notice shall be included in all | ||
| copies or substantial portions of the Software. | ||
|
|
||
| THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
| IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
| FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
| AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
| LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
| OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
| SOFTWARE. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,69 @@ | ||
| # Coinbase | ||
|
|
||
| Cursor plugin that connects agents to [Coinbase](https://docs.cdp.coinbase.com/coinbase-for-agents/overview) through Coinbase's official remote [Model Context Protocol](https://modelcontextprotocol.io/) server. | ||
|
|
||
| Check balances, get quotes, and preview or place trades. | ||
|
|
||
| ## Install | ||
|
|
||
| 1. Open **Cursor Settings → Plugins**. | ||
| 2. Search for **Coinbase**. | ||
| 3. Click **Install**, then follow **Setup** below. | ||
|
|
||
| Or run `/add-plugin coinbase` in chat. | ||
|
|
||
| ## MCP | ||
|
|
||
| ```json | ||
| { | ||
| "mcpServers": { | ||
| "coinbase": { | ||
| "url": "https://agents.coinbase.com/mcp", | ||
| "auth": { | ||
| "CLIENT_ID": "${CLIENT_ID}", | ||
| "CLIENT_SECRET": "${CLIENT_SECRET}" | ||
| } | ||
| } | ||
| } | ||
| } | ||
| ``` | ||
|
|
||
| ## Setup | ||
|
|
||
| Coinbase's authorization server (`login.coinbase.com`) does not support dynamic client registration, so an OAuth client has to be registered before anyone can connect. | ||
|
|
||
| 1. In the [Coinbase Developer Platform portal](https://portal.cdp.coinbase.com/), create an OAuth client and enable the Coinbase for Agents (`mcp:*`) scopes you want to expose. | ||
| 2. Register both redirect URIs on that client: | ||
| - Desktop: `http://localhost:8787/callback` | ||
| - Web and Cloud Agents: `https://www.cursor.com/agents/mcp/oauth/callback` | ||
| 3. In **Dashboard → Plugins → Configure**, set **Coinbase OAuth Client ID** and **Coinbase OAuth Client Secret** from that client. | ||
| 4. Complete the Coinbase login when Cursor prompts. | ||
|
|
||
| On a team marketplace an admin sets the client ID and secret once for everyone; each member still completes their own Coinbase login, so tool calls run against that member's account. Coinbase recommends scoping the agent to a dedicated portfolio. | ||
|
|
||
| ## What agents can do | ||
|
|
||
| | Category | Capabilities | | ||
| | --- | --- | | ||
| | Market data | Products, tickers, order books, and candles | | ||
| | Orders | Preview, create, edit, cancel, and list orders; close positions | | ||
| | Portfolios | Balances, portfolio breakdowns, and transfers between portfolios | | ||
| | Conversions | Quote and execute USDC/USD conversions | | ||
|
|
||
| The hosted runtime is the source of truth for tool names and schemas. | ||
|
|
||
| ## Notes | ||
|
|
||
| - Orders placed through this server are live. Preview first and keep the agent in an isolated portfolio. | ||
| - This is Coinbase for Agents, not the separate Agentic Wallet / x402 payments MCP. | ||
|
|
||
| ## Docs | ||
|
|
||
| - Coinbase for Agents: https://docs.cdp.coinbase.com/coinbase-for-agents/overview | ||
| - Server URL: https://agents.coinbase.com/mcp | ||
|
|
||
| Logo is Coinbase's official mark, from the `coinbase` GitHub organization. | ||
|
|
||
| ## License | ||
|
|
||
| MIT |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| { | ||
| "mcpServers": { | ||
| "coinbase": { | ||
| "url": "https://agents.coinbase.com/mcp", | ||
| "auth": { | ||
| "CLIENT_ID": "${CLIENT_ID}", | ||
| "CLIENT_SECRET": "${CLIENT_SECRET}" | ||
| } | ||
| } | ||
| } | ||
| } | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Invented Coinbase OAuth client credentials
High Severity · Logic Bug
Official Coinbase for Agents setup is URL-only login OAuth: the
https://agents.coinbase.com/mcpURL plus a Coinbase sign-in, with Client ID and Secret left blank. This plugin requiresCLIENT_IDandCLIENT_SECRETand tells users to register a CDP OAuth client withmcp:*scopes, which Coinbase does not advertise. Creating those clients is partner-gated, so typical users cannot finish sign-in.Additional Locations (2)
third_party/coinbase/.cursor-plugin/plugin.json#L33-L52third_party/coinbase/README.md#L32-L40Triggered by learned rule: Prefer native remote MCP over mcp-remote and SSE
Reviewed by Cursor Bugbot for commit 14ef85f. Configure here.