Answer: Declare the private MCP server with `oauth: true` in a connection file, then authorize it once in the browser by running `agent-sdk mcp oauth inventory`. Status: Confirmed Entry: tool/cursor/integrations/authorize-private-mcp-oauth Revision: 1 Digest: sha256:13a4978f0815fe8b (changes whenever the content changes) Timeline: Created: 2026-11-13T03:08:35Z Last changed: 2026-11-13T03:08:35Z Last verified: 2026-11-20T12:33:04Z Next check: 2026-11-21T12:33:04Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Source | As of OAuth setting | oauth: true | [1] | 2026-11-20 Authorization command | agent-sdk mcp oauth inventory | [1] | 2026-11-20 Connection name source | The filename is the connection name. | [1] | 2026-11-20 Re-authorization trigger | If you change the server URL, run `mcp oauth` again. | [1] | 2026-11-20 Sources: [1] Anysphere. "cursor.com/docs/agent-sdk/guides/mcp-oauth.md". https://cursor.com/docs/agent-sdk/guides/mcp-oauth.md Role: primary. Accessed: 2026-11-20T12:33:05Z Quote: "oauth: true," (Supports: OAuth setting) Quote: "agent-sdk mcp oauth inventory" (Supports: Authorization command) Quote: "The filename is the connection name." (Supports: Connection name source) Quote: "If you change the server URL, run `mcp oauth` again." (Supports: Re-authorization trigger) Snapshot SHA-256: 9aa2d2466f9996098f4182c49bd322be97185cfc2364a962794c694a0503dd22 (captured 2026-11-13T03:08:35Z) Verification: Method: Automated extraction from [1] with deepseek-flash (JSON output, thinking disabled). Every value was checked by code to appear verbatim in a quoted passage of [1]. On this check the text of [1] was unchanged since 2026-11-13T03:08:35Z, so the values verified then were kept. Cross-check: not-available at 2026-11-20T12:33:04Z. No independent second source is configured for this entry Last successful check: 2026-11-20T12:33:04Z Last attempt: 2026-11-20T12:33:04Z Notes and limitations: Extracted automatically from a single official source (section "Use a private MCP tool locally"). Related: https://latestn.com/tool/cursor/integrations/azure-devops-setup How do I set up the Azure DevOps integration in Cursor? https://latestn.com/tool/cursor/integrations/azure-devops-unsupported-features Which Cursor features are not supported with Azure DevOps? https://latestn.com/tool/cursor/integrations/bitbucket-data-center-config How do I configure a Cursor Bitbucket agent for Bitbucket Data Center instead of Cloud? https://latestn.com/tool/cursor/integrations/ai-code-tracking-authentication How do I authenticate requests to the Cursor AI Code Tracking API? https://latestn.com/tool/cursor/integrations/ai-commit-metrics-parameters What are the parameters and limits for the Cursor Get AI Commit Metrics endpoint? https://latestn.com/tool/cursor/integrations/api-authentication How do I authenticate with the Cursor APIs? https://latestn.com/tool/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-13T03:08:35Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/cursor/integrations/authorize-private-mcp-oauth/latest Challenge this entry: Open challenges: None How: If a value here is wrong or out of date, send what is wrong and a link to evidence. Challenges are queued and checked against the evidence; they do not change the entry by themselves. If the entry changes as a result, the change log says so. Form: https://latestn.com/dispute/tool/cursor/integrations/authorize-private-mcp-oauth POST: https://latestn.com/dispute/tool/cursor/integrations/authorize-private-mcp-oauth with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/cursor/integrations/authorize-private-mcp-oauth?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). How do I authorize a private MCP server with OAuth in Cursor's Agent SDK? Revision 1, last verified 2026-11-20T12:33:04Z. https://latestn.com/tool/cursor/integrations/authorize-private-mcp-oauth (accessed 2026-11-21T09:58:32Z). @misc{LatestN_tool_cursor_integrations_authorize_private_mcp_oauth_r1, title = {How do I authorize a private MCP server with OAuth in Cursor's Agent SDK?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/cursor/integrations/authorize-private-mcp-oauth}}, note = {Revision 1; digest sha256:13a4978f0815fe8b; last verified 2026-11-20T12:33:04Z; accessed 2026-11-21T09:58:32Z} } Reuse: License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/) Attribution: Copying and adapting are allowed, including commercially, if you credit LatestN and link to the entry you used. Each entry ends with a ready-made citation. URL: https://latestn.com/tool/cursor/integrations/authorize-private-mcp-oauth