# Connect an AI agent

> Page: https://docs.flung.dev/mcp. Index of every page: https://docs.flung.dev/llms.txt

Give an AI agent Flung's tools through its MCP server, so it can connect accounts, schedule posts, retry failures and answer comments for you.

## TL;DR

| Question | Answer |
|---|---|
| Is there anything to install? | No. The server is hosted; your client connects to it over HTTP. |
| How does it sign in? | Through your browser: you approve the agent and pick the workspace. Or with an API key, for clients that cannot sign in. |
| Can the agent connect an account by itself? | No. It gives you the platform's link; you approve there. |
| What can it do? | Every tool is listed in [MCP tools](https://docs.flung.dev/reference/mcp.md). |

## Add the server

**Claude Code**

```bash
claude mcp add --transport http flung https://mcp.flung.dev/mcp-oauth
```

**Cursor**

```json
{
  "mcpServers": {
    "flung": {
      "url": "https://mcp.flung.dev/mcp-oauth"
    }
  }
}
```

**VS Code**

```json
{
  "servers": {
    "flung": {
      "type": "http",
      "url": "https://mcp.flung.dev/mcp-oauth"
    }
  }
}
```

**API key**

```bash
claude mcp add --transport http flung https://mcp.flung.dev/mcp --header "X-API-Key: $FLUNG_API_KEY"
```

In Claude Desktop and on claude.ai, add a custom connector with the address from the Claude Code line.

## Try it

Ask your agent:

- "Which of my social accounts need reconnecting?"
- "Connect my LinkedIn."
- "Post 'We're live' to X and Bluesky tomorrow at 9am my time."

More are in [Prompts and recipes](https://docs.flung.dev/agents/prompts.md). To make every project's agent use Flung the same way, paste the [rules file](https://docs.flung.dev/agents/rules.md) into it.
