Robinhood
Read-only account and position sync through Robinhood Trading MCP
Sync Robinhood accounts and equity positions over the Robinhood Trading MCP endpoint. Signs in with OAuth in your browser, asks for the two read-only tools it needs, and refuses to run if either is not marked read-only. No order placement.
Install
gloom install gloom-sh/gloom-robinhoodRestart Gloom after installing. Requires Gloom 0.12.0 or newer.
It does not run in the web terminal at term.gloom.sh, so it needs Gloom on your own machine.
What it adds
Connects a brokerage account, so positions and balances flow into portfolios.
Network access
Contacts these domains while it runs:
agent.robinhood.comrobinhood.com
Readme
Setup
Run BR (or Ctrl+P → "Connect a broker") and pick Robinhood. The first sync opens Robinhood in your browser to sign in. There is no password or API key to paste, and the tokens Robinhood issues are stored in your local Gloom config.
What it can do
Nothing but read. The plugin asks the MCP server for exactly two tools, get_accounts and get_equity_positions, and refuses to run if either one is not marked read-only. No order-placing tool is ever requested or called.
Gloom registers as a public OAuth client (PKCE, no client secret), which is the only kind Robinhood's authorization server accepts. The sign-in callback is http://localhost:<port>/callback, served only on the loopback addresses (127.0.0.1 and ::1). It accepts Robinhood's response only when it carries the random state parameter of that sign-in, and stops waiting after five minutes.
When connecting fails
The error names the step that failed and, for a request, the HTTP status and endpoint that answered, for example Robinhood token exchange failed: HTTP 400 from api.robinhood.com/oauth2/token/ (invalid_grant). The steps, in order:
| Step | What happens |
|---|---|
| discovery | Reads Robinhood's OAuth metadata from agent.robinhood.com |
| registration | Registers Gloom as an OAuth client |
| browser sign-in | You sign in to Robinhood and allow access in your browser |
| callback | Robinhood sends the browser back to Gloom with a code |
| token exchange | Gloom trades the code for a token at api.robinhood.com |
| token refresh | A later sync renews an expired token |
| MCP connect | Gloom connects to the Robinhood Trading MCP endpoint with the token |
Robinhood's browser sign-in may ask you to open its dedicated MCP account before it lets any agent connect, even though this plugin only reads.
Desktop and terminal
The OAuth flow needs a local HTTP server, so it runs in Gloom's Bun process on every platform. The desktop view loads index.browser.ts, which carries the broker's identity and fields and forwards the actual work to the backend. See the browser field in package.json.