Cursor can connect to o11 over MCP to research a coding question, extract an approved page, or prepare a media asset through eligible tools. One connection gives the agent a shared access path while you keep the resulting notes, sources, and files in the project where they are useful.
The walkthrough starts with connection setup and a read-only operation review. It then shows how to scope a documentation task or media brief, inspect the output, and resume pending work without starting over. You use Cursor’s existing MCP support and the public o11 interface.
Prepare project access
Obtain the HTTPS tools origin for your configured o11 environment and a scoped application key. The origin is the base address; the MCP path is /mcp. Keep the origin in O11_TOOLS_URL and the key in O11_API_KEY in the environment Cursor can read.
Before paid execution, confirm that the selected supplier operation and funding path are ready. A successful MCP connection establishes access to the interface, not activation of every catalog operation.
The key should identify the intended workspace and application policy. Before paid work, confirm allowed tools, available connections, action permissions, and spending limits. Use a development credential while evaluating the integration.
Choose whether the server belongs to one project or your personal global setup. Cursor documents project configuration at .cursor/mcp.json and global configuration at ~/.cursor/mcp.json. A project configuration can share the connection pattern while each developer supplies their own secret values. Cursor MCP configuration.
Keep configuration changes reviewable. Merge a server entry into the existing file instead of overwriting other tools. An unexpected server removal can break unrelated project workflows.
Configure the remote server
Add this entry to the selected MCP configuration file:
{
"mcpServers": {
"o11": {
"url": "${env:O11_TOOLS_URL}/mcp",
"headers": {
"Authorization": "Bearer ${env:O11_API_KEY}"
}
}
}
} Cursor supports interpolation in URL and header values using ${env:NAME}. Its documentation notes that envFile is for local STDIO servers; remote HTTP configurations should use environment interpolation. An .env file merely existing in the project does not prove the remote server configuration can read it. Cursor configuration interpolation.
Confirm the server’s connection status in Cursor’s MCP settings. If it fails, check that the application inherited the environment variables and that the supplied origin points to the intended environment.
Do not replace the environment reference with a real key just to make a shared configuration work. Fix secret loading or use an approved private configuration path. Keep credentials out of version control and chat messages.
Test discovery as a separate step
Ask the agent for an operation review before execution:
Use o11 to find an operation that can read an approved public web page.
Inspect the selected operation and explain its required input,
account mode, price evidence, and completion behavior.
Do not execute it yet. This should produce candidate identifiers and a detailed inspection. The current o11 discovery operation searches names, providers, and identifiers. If the wording is too broad, try a capability term or a known provider name.
Check whether the result requires customer credentials, supports the page type you need, and returns enough evidence for the task. A search result snippet is not the same as full page extraction. A generated report is not necessarily a source ledger.
If a candidate is unavailable, retain the reason. The agent should not invent a replacement operation or a missing account identifier. Use the tool selection funnel to compare eligible alternatives deliberately.
Use search for a concrete coding question
A useful first task is a current documentation question tied to a code change. For example, ask the agent to find the official documentation for a dependency’s installed version and produce a source-backed implementation note.
Define the scope: official sources, the specific version or behavior, a bounded number of retrieval operations, and no repository edits until the findings are reviewed. The tool gives access to evidence; the agent still needs to reconcile that evidence with the installed code.
The output should identify what was verified, what remains uncertain, and which source supports the proposed change. Avoid treating a search summary as definitive API syntax. Open the relevant documentation through an eligible operation and inspect the actual content.
If the dependency’s latest documentation differs from the installed version, preserve that distinction. A current page can describe an API your project does not yet have. The Vercel AI SDK integration illustrates why version-specific examples matter.
After the note is accepted, the agent can implement within the repository’s normal authorization and verification rules. Tool access does not override those rules.
Add media with an artifact contract
Media generation is easier to evaluate when the desired artifact is explicit. Specify the use, dimensions or aspect ratio, format, visual constraints, and whether generation is optional. An attractive preview is not a substitute for a usable file.
Inspect the selected image or video operation before submission. Confirm its input contract, account mode, expected output, and whether it completes immediately or creates a job. Use an operator-approved ceiling for the actual task.
Prepare one approved product illustration using the inspected operation.
Use the required dimensions and format from the design brief.
Retain the invocation identifier and generation inputs.
If the job is pending, report pending and retrieve the same job later.
Do not publish, deploy, or generate additional variants without scope. This instruction is a review template, not a provider-specific request. Supply exact values from your design brief and the inspected contract.
Once generated, download or store the asset through the supported path. Expiring supplier links should not become permanent application dependencies. Review the asset in its actual layout before considering the task complete. The image and video workflow covers that lifecycle.
Preserve results and recovery
o11’s invocation receipt distinguishes accepted work from completion. Save the identifier and use get_invocation for status and results. A queued or waiting receipt is a progress record, not a finished asset.
For a known failure, review the cause before retrying. For an unknown outcome, preserve the existing call and follow the reconciliation route. Starting another generation can create duplicate work and charges.
Keep partial success. If research is complete and image generation fails, retain the research and proposed implementation. The optional media step can resume later without repeating every retrieval call.
For customer-account operations, retain the selected connection context. Reconnecting an account can restore access, but it does not establish whether earlier work completed. Status recovery and credential repair are separate tasks.
The asynchronous job guide provides a state-oriented implementation pattern for longer jobs.
Debug with the right boundary
| Observation | Likely boundary to inspect | What to retain |
|---|---|---|
| MCP connection fails | Origin, headers, environment | Sanitized connection status |
| Discovery has no candidates | Scope and search term | Query and expected capability |
| Inspection reveals missing account | Workspace configuration | Exact prerequisite |
| Invocation rejected before dispatch | Input, permission, or maximum | Sanitized validation details |
| Receipt remains pending | Existing operation lifecycle | Invocation identifier |
| Output is unusable | Task acceptance criteria | Source evidence or artifact defect |
This classification avoids changing several layers at once. If the server rejects authentication, rewriting the prompt will not fix the key. If the output lacks the required content, broadening permissions will not improve it.
Keep secret values out of screenshots and shared logs. Share operation identifiers and sanitized error information instead. For reproducibility, record the Cursor version and configuration location used in your environment.
Make the pattern reusable across projects
Share the configuration shape, approved task examples, and acceptance rubric. Use separate credentials and account selections where projects have different authority. This preserves attribution while reducing repeated onboarding.
Add capabilities when a concrete task requires them. Avoid enabling unrelated tools merely because they are available. A focused operation set makes both agent selection and review easier.
The configuration and request descriptions here were checked against official Cursor documentation and o11’s implemented contract. They do not report a live paid supplier test. Confirm supplier activation and pricing in your environment before paid execution.
For a server-side product, continue with the custom agent integration. For a common capability layer shared by Cursor, Claude Code, and application agents, use the reusable tool layer pattern.





