# Connect PubNio MCP to Claude & Claude Code

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

## Summary

Run claude mcp add --transport http pubnio https://pubnio.com/mcp, open /mcp in Claude Code to complete browser OAuth sign-in, and Claude can use PubNio's search and execute tools to import media, publish from text plus an account or platform, and confirm delivery to Facebook Pages, Instagram, LinkedIn, Pinterest, TikTok, X, and YouTube.

## Install (Terminal · Claude Code CLI)

```shell
claude mcp add --transport http pubnio https://pubnio.com/mcp
```

## Setup steps

1. **Register the remote Streamable HTTP server:** Run the single claude mcp add command above in your project or global terminal. No local Node server or static API key file is required.
2. **Complete browser OAuth via /mcp:** Inside Claude Code, run /mcp, select pubnio, and approve access in your browser. PubNio issues a user-delegated token scoped to your workspace permissions.
3. **Create and confirm live delivery:** Ask Claude to list your accounts, create a post from text and a platform or account, then read the post for the terminal outcome and each destination's provider ref.

## Example prompt

> Check my PubNio accounts, publish a launch post from CHANGELOG.md to our LinkedIn and X accounts, then wait for the delivery result.

## Expected Code Mode flow

```text
search   -> find workspaces, accounts, and post operations
execute  -> list workspaces => { workspaces: [{ id: "ws_01j8...", name: "Acme Marketing" }] }
execute  -> list ready accounts => { accounts: [linkedin: ready, x: ready] }
execute  -> create post { text, platforms: ["linkedin", "x"] } => { postId: "pst_01j9...", targets: [queued, queued] }
execute  -> read post until settled => { status: "published", deliveries: [published, published] }
```

## FAQs

### Does Claude Code need an API key to use PubNio MCP?

No. Claude Code authenticates over OAuth using PubNio's protected-resource metadata at /.well-known/oauth-protected-resource/mcp, so you never paste raw workspace keys into local config files.

### How much does it cost to publish from Claude Code?

Pay as you go includes 100 free confirmed publishes every month with unlimited connected accounts at $0 and no credit card required.
