Skip to main content
Glama
@ocoya-com/mcp

@ocoya-com/mcp

Official
by Ocoya
README.md
<p align="center">
  <a href="https://www.ocoya.com/agents"><img src="https://www.ocoya.com/npm/mcp/banner.jpg" alt="Ocoya MCP: your agent's social media, SEO and email" width="100%" /></a>
</p>

<h1 align="center">@ocoya-com/mcp</h1>

<p align="center">
  <b>Give any AI agent a marketing team.</b><br />
  Claude, ChatGPT, Cursor, VS Code, n8n or your own agent writes, schedules and publishes social posts to 20+ networks, SEO articles and email campaigns through <a href="https://www.ocoya.com">Ocoya</a>.
</p>

<p align="center">
  <a href="https://www.npmjs.com/package/@ocoya-com/mcp"><img src="https://img.shields.io/npm/v/@ocoya-com/mcp?style=flat-square&color=ec4899&label=npm" alt="npm version" /></a>
  <a href="https://www.npmjs.com/package/@ocoya-com/mcp"><img src="https://img.shields.io/npm/dm/@ocoya-com/mcp?style=flat-square&color=8b5cf6" alt="npm downloads" /></a>
  <a href="https://modelcontextprotocol.io"><img src="https://img.shields.io/badge/MCP-Streamable%20HTTP%20%2B%20stdio-0c0a09?style=flat-square" alt="MCP" /></a>
  <a href="https://docs.ocoya.com/mcp/tools"><img src="https://img.shields.io/badge/tools-66-f97316?style=flat-square" alt="66 tools" /></a>
  <a href="#licence"><img src="https://img.shields.io/badge/licence-MIT-22d3ee?style=flat-square" alt="MIT" /></a>
</p>

<p align="center">
  <a href="https://cursor.com/en/install-mcp?name=ocoya&config=eyJ1cmwiOiJodHRwczovL21jcC5vY295YS5jb20ifQ=="><img src="https://www.ocoya.com/npm/mcp/btn-cursor.png" alt="Add to Cursor" height="48" /></a>
  <a href="https://vscode.dev/redirect/mcp/install?name=ocoya&config=%7B%22type%22%3A%22http%22%2C%22url%22%3A%22https%3A%2F%2Fmcp.ocoya.com%22%7D"><img src="https://www.ocoya.com/npm/mcp/btn-vscode.png" alt="Install in VS Code" height="48" /></a>
  <a href="https://docs.ocoya.com/mcp/connect/claude"><img src="https://www.ocoya.com/npm/mcp/btn-claude.png" alt="Add to Claude" height="48" /></a>
  <a href="https://docs.ocoya.com/mcp/connect/chatgpt"><img src="https://www.ocoya.com/npm/mcp/btn-chatgpt.png" alt="Add to ChatGPT" height="48" /></a>
  <a href="#n8n"><img src="https://www.ocoya.com/npm/mcp/btn-n8n.png" alt="Use in n8n" height="48" /></a>
</p>

<p align="center">
  <a href="https://www.app.ocoya.com/?modal=settings&tab=api"><img src="https://www.ocoya.com/npm/mcp/btn-key.png" alt="Get your API key" height="48" /></a>
  <a href="https://docs.ocoya.com/mcp/get-started"><img src="https://www.ocoya.com/npm/mcp/btn-docs.png" alt="Read the docs" height="48" /></a>
  <a href="https://www.ocoya.com/agents"><img src="https://www.ocoya.com/npm/mcp/btn-site.png" alt="ocoya.com" height="48" /></a>
</p>

<br />

## โšก 30-second start

**Remote, no install.** Point any MCP client at the server and sign in with OAuth in the browser. You choose which brands the agent may use.

```
https://mcp.ocoya.com
```

**Local, with an API key.** This package is a tiny stdio bridge to the same server:

```bash
OCOYA_API_KEY=your-api-key npx -y @ocoya-com/mcp
```

Then ask your agent:

> Post "We just shipped dark mode ๐ŸŒ™" to our LinkedIn page and X account tomorrow at 9:00 London time. Show me the post first.

<p align="center">
  <img src="https://www.ocoya.com/npm/mcp/flow.jpg" alt="Your agent โ†’ Ocoya MCP โ†’ social media, SEO articles and email" width="100%" />
</p>

<br />

## โœจ Three things your agent can now do

<table>
  <tr>
    <td width="33%" valign="top">
      <img src="https://www.ocoya.com/npm/mcp/pillar-social.jpg" alt="Social media" width="100%" />
      <h3>Social media</h3>
      One post to 20+ networks: LinkedIn, X, Instagram, Facebook, TikTok, Threads, Bluesky, YouTube, Pinterest, Google Business and more. Carousels, video, alt text, per-network options, and a social inbox for comments and DMs.
    </td>
    <td width="33%" valign="top">
      <img src="https://www.ocoya.com/npm/mcp/pillar-seo.jpg" alt="SEO articles" width="100%" />
      <h3>SEO articles</h3>
      Keyword-researched articles written in your brand voice and published straight to WordPress, Framer, Wix, Notion and DEV.
    </td>
    <td width="33%" valign="top">
      <img src="https://www.ocoya.com/npm/mcp/pillar-email.jpg" alt="Email campaigns" width="100%" />
      <h3>Email campaigns</h3>
      Contacts and groups, AI-written emails, templates, test sends, scheduling and open and click stats.
    </td>
  </tr>
</table>

Every brand keeps its own voice, logo and colours. Posts are **saved as drafts** unless the agent is told to schedule or publish, and the package forwards to the remote server, so new tools appear without updating it.

<br />

## ๐Ÿ”Œ Connect your client

<details open>
<summary><b>Claude Code</b></summary>

```bash
# remote, OAuth in the browser
claude mcp add --transport http ocoya https://mcp.ocoya.com

# or local, with an API key
claude mcp add ocoya --env OCOYA_API_KEY=your-api-key -- npx -y @ocoya-com/mcp
```
</details>

<details>
<summary><b>Claude Desktop / Claude.ai</b></summary>

Easiest: **Settings โ†’ Connectors โ†’ Add custom connector**, URL `https://mcp.ocoya.com`.

Or run it locally. Edit `~/Library/Application Support/Claude/claude_desktop_config.json` (macOS) or `%APPDATA%\Claude\claude_desktop_config.json` (Windows):

```json
{
  "mcpServers": {
    "ocoya": {
      "command": "npx",
      "args": ["-y", "@ocoya-com/mcp"],
      "env": { "OCOYA_API_KEY": "your-api-key" }
    }
  }
}
```
</details>

<details>
<summary><b>Cursor</b></summary>

Click **Add to Cursor** above, or add this to `~/.cursor/mcp.json` (or `.cursor/mcp.json` in a project):

```json
{
  "mcpServers": {
    "ocoya": {
      "command": "npx",
      "args": ["-y", "@ocoya-com/mcp"],
      "env": { "OCOYA_API_KEY": "your-api-key" }
    }
  }
}
```

Windsurf (`~/.codeium/windsurf/mcp_config.json`) and Cline (`cline_mcp_settings.json`) take the same block.
</details>

<details>
<summary><b>VS Code (GitHub Copilot agent mode)</b></summary>

Click **Install in VS Code** above, or add `.vscode/mcp.json`:

```json
{
  "inputs": [
    { "type": "promptString", "id": "ocoya-key", "description": "Ocoya API key", "password": true }
  ],
  "servers": {
    "ocoya": {
      "type": "stdio",
      "command": "npx",
      "args": ["-y", "@ocoya-com/mcp"],
      "env": { "OCOYA_API_KEY": "${input:ocoya-key}" }
    }
  }
}
```
</details>

<details>
<summary><b>ChatGPT</b></summary>

ChatGPT connects to remote servers only. In **Settings โ†’ Apps**, turn on developer mode if asked, then **Create**:

- MCP server URL: `https://mcp.ocoya.com`
- Authentication: OAuth

ChatGPT opens Ocoya so you can sign in and pick the brands it may use.
</details>

<details>
<summary><b>Gemini CLI, Codex, Manus and others</b></summary>

- **Remote:** `https://mcp.ocoya.com` (Streamable HTTP). OAuth 2.1 with dynamic client registration, or `Authorization: Bearer <api-key>` for clients that can't do OAuth.
- **stdio:** command `npx`, args `["-y", "@ocoya-com/mcp"]`, env `OCOYA_API_KEY`.

Step-by-step guides: [Gemini](https://docs.ocoya.com/mcp/connect/gemini) ยท [Codex](https://docs.ocoya.com/mcp/connect/codex) ยท [JSON and stdio clients](https://docs.ocoya.com/mcp/connect/json-clients)
</details>

<a id="n8n"></a>
<details>
<summary><b>n8n</b></summary>

Add an **MCP Client Tool** node to an AI Agent:

- Endpoint: `https://mcp.ocoya.com`
- Server transport: HTTP Streamable
- Authentication: Bearer Auth, with your Ocoya API key as the token

Self-hosted n8n with community stdio nodes can run `npx -y @ocoya-com/mcp` with `OCOYA_API_KEY` instead.
</details>

<br />

## ๐Ÿง  Add the Ocoya skill

The tools say what they do; the skill says how to use them well: find the brand first, save drafts, show the post before it goes out, and each network's limits. Install it next to the server:

```bash
npx skills add Ocoya/ocoya-agent
```

The same repository, [Ocoya/ocoya-agent](https://github.com/Ocoya/ocoya-agent), is also a Claude Code plugin (`/plugin marketplace add Ocoya/ocoya-agent`) and a Gemini CLI extension (`gemini extensions install https://github.com/Ocoya/ocoya-agent`) that bundle the skill with the server.

<br />

## ๐Ÿ’ก Things to ask your agent

| You say | What the agent does |
|---|---|
| *"Post our launch to LinkedIn and X tomorrow at 9. Show me first."* | `ocoya_get_me` โ†’ `ocoya_list_channels` โ†’ `ocoya_create_post` (draft) โ†’ waits for your OK โ†’ `ocoya_schedule_post` |
| *"Plan two weeks of Instagram posts for our winter menu."* | `ocoya_create_ai_campaign` with type `social`, posts spread over the days, in your brand voice |
| *"Write an SEO article on 'how to keep sourdough fresh' for our WordPress blog."* | `ocoya_create_ai_seo_post` โ†’ draft on the blog channel โ†’ `ocoya_schedule_seo_post` when you approve |
| *"Email our subscribers about the 20% winter sale and send me a test."* | `ocoya_create_ai_email` โ†’ `ocoya_send_test_email` โ†’ `ocoya_schedule_email` |
| *"What did customers ask in our Instagram DMs this week? Draft replies."* | `ocoya_list_conversations` โ†’ `ocoya_get_conversation` โ†’ `ocoya_reply_to_conversation` once you agree |
| *"Connect our TikTok."* | `ocoya_generate_channel_connection_url` gives you a link to open and approve |

<br />

## ๐Ÿงฐ Tools

66 tools, grouped. Full reference with parameters and examples: **[docs.ocoya.com/mcp/tools](https://docs.ocoya.com/mcp/tools)**.

| Area | Tools |
|---|---|
| Account and brands | `ocoya_get_me` (call first), `ocoya_list_brands`, `ocoya_get_brand`, `ocoya_update_brand` |
| Channels | `ocoya_list_channels`, `ocoya_get_channel`, `ocoya_generate_channel_connection_url` |
| Social posts | `ocoya_create_post`, `ocoya_create_ai_post`, `ocoya_update_post`, `ocoya_schedule_post`, `ocoya_delete_post`, `ocoya_list_posts`, `ocoya_list_calendar_posts`, `ocoya_get_post`, `ocoya_request_post_approval`, `ocoya_get_post_approval` |
| Campaigns | `ocoya_create_ai_campaign` (social, SEO or email series), `ocoya_list_campaigns`, `ocoya_get_campaign` |
| SEO articles | `ocoya_create_seo_post`, `ocoya_create_ai_seo_post`, `ocoya_update_seo_post`, `ocoya_schedule_seo_post`, `ocoya_list_seo_posts`, `ocoya_get_seo_post`, `ocoya_delete_seo_post` |
| Email | `ocoya_create_email`, `ocoya_create_ai_email`, `ocoya_update_email`, `ocoya_schedule_email`, `ocoya_send_test_email`, `ocoya_get_email_stats`, `ocoya_list_emails`, `ocoya_get_email`, `ocoya_list_email_templates`, `ocoya_get_email_settings`, `ocoya_schedule_email_campaign`, contacts and contact groups |
| Social inbox | `ocoya_list_conversations`, `ocoya_get_conversation`, `ocoya_reply_to_conversation`, `ocoya_update_conversation`, `ocoya_list_inbox_labels`, `ocoya_list_inbox_teammates` |
| Design and workflows | `ocoya_list_studio_designs`, `ocoya_get_studio_design`, `ocoya_render_studio_design`, `ocoya_list_studio_templates`, `ocoya_list_workflows`, `ocoya_get_workflow`, `ocoya_toggle_workflow`, `ocoya_run_workflow` |

Prefer plain HTTP? Everything is also a REST API: [docs.ocoya.com](https://docs.ocoya.com/get-started), with an OpenAPI spec at [docs.ocoya.com/openapi.json](https://docs.ocoya.com/openapi.json) and an [llms.txt](https://www.ocoya.com/llms.txt) for agents.

<br />

## โš™๏ธ Options

| Env | Flag | Default |
|---|---|---|
| `OCOYA_API_KEY` | `--api-key` | required for stdio |
| `OCOYA_MCP_URL` | `--url` | `https://mcp.ocoya.com` |

Logs go to stderr. Needs Node.js 18 or newer.

<br />

## โ“ FAQ

<details>
<summary><b>Do I need an Ocoya account?</b></summary>

Yes. Sign up at [ocoya.com](https://www.ocoya.com). Every paid plan starts with a 7-day free trial. See [pricing](https://www.ocoya.com/pricing).
</details>

<details>
<summary><b>Remote or local, which one?</b></summary>

Remote (`https://mcp.ocoya.com`) is the simplest: OAuth, no Node.js, nothing to update. Use the local package for clients that only run stdio servers or when you'd rather use an API key. Both expose the same tools.
</details>

<details>
<summary><b>Will the agent post without asking?</b></summary>

Not unless you tell it to. Tools create drafts by default; scheduling, publishing, sending and replying are separate, explicit calls. You can also require approvals in Ocoya.
</details>

<details>
<summary><b>What happens when I hit a plan limit?</b></summary>

The tool answers with a clear message and an upgrade link the agent can pass on to you. Nothing is lost.
</details>

<details>
<summary><b>Where do I get an API key?</b></summary>

In Ocoya: **Settings โ†’ API** ([direct link](https://www.app.ocoya.com/?modal=settings&tab=api)). A key reaches every brand you own or administer.
</details>

<br />

## ๐Ÿ†˜ Support

- Docs: [docs.ocoya.com/mcp](https://docs.ocoya.com/mcp/get-started) ยท [Troubleshooting](https://docs.ocoya.com/mcp/troubleshooting)
- Email: [support@ocoya.com](mailto:support@ocoya.com)
- Website: [ocoya.com/agents](https://www.ocoya.com/agents)

<a id="licence"></a>

<br />

## Licence

MIT ยฉ [Ocoya](https://www.ocoya.com)

<p align="center">
  <a href="https://www.ocoya.com"><img src="https://www.ocoya.com/logo.svg" alt="Ocoya" height="28" /></a>
</p>