# Connect PubNio MCP to Cursor

Human page: https://pubnio.com/cursor
Hosted MCP URL: https://pubnio.com/mcp

## Summary

Add https://pubnio.com/mcp under mcpServers.pubnio in .cursor/mcp.json, then open Cursor's MCP settings to complete browser OAuth sign-in. Cursor agents can then use the search and execute tools to publish and verify social posts across Facebook, Instagram, LinkedIn, Pinterest, TikTok, X, and YouTube directly from your repo.

## Install (.cursor/mcp.json)

```json
{
  "mcpServers": {
    "pubnio": {
      "url": "https://pubnio.com/mcp"
    }
  }
}
```

## Setup steps

1. **Add PubNio to .cursor/mcp.json:** Merge the pubnio entry above into your repository's .cursor/mcp.json (or global Cursor MCP config) so every team member shares the same endpoint.
2. **Connect via Cursor MCP settings:** Open Cursor Settings -> MCP, click Connect on pubnio, and complete browser OAuth sign-in. No static API keys need to be committed to Git.
3. **Publish directly from Cursor Composer / Agent:** Ask Cursor to turn a changelog, demo video URL, or blog post into a PubNio post and publish it with per-destination confirmation.

## Example prompt

> Use PubNio to check our connected Instagram and TikTok accounts, import our demo reel URL, and publish it with platform-appropriate captions.

## Expected Code Mode flow

```text
search   -> find account, media, and post operations
execute  -> list ready accounts => { accounts: [instagram: ready, tiktok: ready] }
execute  -> import media { url: "https://..." } => { mediaId: "med_01j9...", status: "processing" }
execute  -> check media readiness => { status: "ready" }
execute  -> create post { text, media: [{ mediaId: "med_01j9..." }], platforms: ["instagram", "tiktok"] } => { postId: "pst_01j9..." }
execute  -> read post until settled => { status: "published" }
```

## FAQs

### Is it safe to commit .cursor/mcp.json to our repository?

Yes. The config only contains the public endpoint URL https://pubnio.com/mcp. Authentication happens per user through browser OAuth.

### Can Cursor schedule posts after I close the editor?

Yes. PubNio handles scheduled delivery even when Cursor is closed.
