Connect AI tools to Ocoya
Open MCP settings Ocoya MCP lets AI clients work with your Ocoya account through approved, workspace-scoped access. After you connect a client, it can inspect workspaces, list social profiles, draft posts, schedule posts, publish immediately, manage brand kits, and run workflows on your behalf. Use MCP when you want an assistant such as Claude, Codex, Cursor, VS Code, or another MCP-compatible client to perform Ocoya actions directly instead of giving it API keys or asking it to generate REST calls.Workspace-aware
The OAuth approval screen lets you choose which Ocoya workspaces the client can access.
No API keys
MCP uses OAuth. Ocoya API keys are not accepted by the MCP server.
Read and write tools
Clients can discover content, create posts, schedule posts, publish posts, and run workflows.
Structured results
Tool responses include JSON-friendly
structuredContent for clients that can consume it.Endpoint
POST. It supports single requests and JSON-RPC batch requests.
If your environment has not moved to the MCP subdomain yet, use:
Authentication
Ocoya MCP uses OAuth. No Ocoya API key is required, and API keys are not accepted by the MCP server. When a client first uses an Ocoya tool, it opens Ocoya in the browser. The user signs in, reviews the requested permissions, selects allowed workspaces, and approves access. The client receives a short-lived access token and can refresh it according to the OAuth flow. Approved grants can include these capabilities:| Capability | What it allows |
|---|---|
workspace:read | Read approved workspaces and brand kits. |
social_profiles:read | Read connected social profiles in approved workspaces. |
posts:read | List, inspect, and preview posts. |
posts:write | Create drafts, update posts, schedule posts, and delete posts. |
posts:publish | Publish posts immediately. |
workflows:read | List and inspect workflows. |
workflows:run | Toggle workflows and queue workflow runs. |
Client configuration
Claude Code
Claude Code
Claude Desktop / Web
Claude Desktop / Web
Add a custom connector and paste the MCP URL:
Codex
Codex
Cursor and JSON-based clients
Cursor and JSON-based clients
VS Code
VS Code
Typical flow
Approve OAuth access
Ocoya opens in the browser. Sign in, review permissions, select the workspaces the client may access, and approve the connection.
Resolve workspace and profile IDs
Ask the client to list workspaces and social profiles before creating or scheduling posts.
Useful prompts
Use natural language. The client decides which MCP tools to call.Manual protocol check
Most users should let their MCP client handle OAuth and JSON-RPC. For diagnostics, an unauthenticated request should return401 with a WWW-Authenticate header that points to Ocoya OAuth metadata.
tools/call:
Troubleshooting
| Issue | What to check |
|---|---|
401 response | The client has not completed OAuth, the access token expired, or the client is using an API key instead of OAuth. |
| Workspace not found | The workspace was not selected during approval, or the client is using an ID from a different Ocoya account. |
| Social profile rejected | Use ocoya_list_social_profiles for the same workspace and pass one of the returned IDs. |
| Invalid schedule | Use an ISO datetime such as 2026-07-01T09:00:00Z. |
| Workflow cannot be toggled | Resolve validation errors in the workflow before enabling or disabling it. |
Safety
Only approve MCP clients you trust. MCP clients can perform write actions in the workspaces you allow, including creating posts, scheduling posts, publishing posts, deleting posts, toggling workflows, and running workflows. Review the client action before approving sensitive tasks such as immediate publishing or deletion.Next
MCP tools
Review every Ocoya MCP tool, required argument, and common usage pattern.