# Connect over MCP

Connect Claude Code, Claude Desktop, Claude.ai, Cursor or any MCP client to flayr with one URL, so your AI agent can draft and schedule posts. It uses an API key or a flayr sign-in.

One URL for every MCP client. Pick your client below, then check that it works.

## The MCP server URL

Every MCP client connects to the same URL.

null

1. Copy the MCP server URL

Every client in this tutorial connects to this URL.

2. Have an API key ready

A client that connects with a key sends it in the Authorization header. Wherever you see flayr_sk_YOUR_KEY, put your own key. No key yet? Create one in Connect your AI agent.

## Claude Code

One command in your terminal.

null

1. Run the command

Paste it into a terminal, with your key in place of flayr_sk_YOUR_KEY.

2. Check flayr is listed

In Claude Code, run /mcp. flayr appears in the list of servers.

## Claude Desktop and Claude.ai

A custom connector. No API key or config file: you sign in to flayr instead, and pick the brand.

null

1. Add a custom connector

In Claude Desktop or claude.ai, open Settings, then Connectors, and choose Add custom connector.

2. Name it flayr and paste the URL

Leave the advanced OAuth fields empty.

3. Connect and sign in

Choose Connect, sign in to flayr, pick your brand and allow what it may do.

## Cursor and any other MCP client

Any client that supports remote (Streamable HTTP) MCP servers with headers takes the same block.

null

1. Add the server in Cursor

Open Settings, then MCP, then Add new MCP server, or edit ~/.cursor/mcp.json. Paste the block with your key in place of flayr_sk_YOUR_KEY.

2. Another MCP client

Give it the server URL and the Authorization header from the first section.

## Check it works

Two quick checks: the URL answers, and your agent knows your brand.

null

1. Check the URL answers

Run this in a terminal. The server answers it without a key, so it shows the URL is right.

2. Ask your agent

Ask the question below. A working connection calls the whoami tool and answers with your brand (or "all your brands" for an account-wide key) and your plan.
