> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.flockx.io/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.flockx.io/_mcp/server.

# Connect Flockx to any MCP client

> Connection details for the Flockx MCP server: Streamable HTTP at https://mcp.flockx.io/mcp with OAuth 2.1 and dynamic client registration. Setup examples for VS Code, Goose, stdio-only clients via mcp-remote, and custom agents.

Any client that supports remote MCP servers with OAuth sign-in can connect to Flockx. Some apps call this a *custom connector* or a *remote extension*.

## Connection details

| Setting                         | Value                                                                                                        |
| ------------------------------- | ------------------------------------------------------------------------------------------------------------ |
| **Server URL**                  | `https://mcp.flockx.io/mcp`                                                                                  |
| **Transport**                   | Streamable HTTP                                                                                              |
| **Authentication**              | OAuth 2.1, authorization code with PKCE                                                                      |
| **Client registration**         | Dynamic Client Registration. Clients that support it register themselves; there is no client secret to copy. |
| **Protected resource metadata** | `https://mcp.flockx.io/.well-known/oauth-protected-resource/mcp`                                             |
| **Refresh tokens**              | Request the `offline_access` scope to stay signed in between sessions.                                       |

On the first call without credentials the server answers `401` with a pointer to the protected resource metadata. A compliant client uses it to find the Flockx sign-in, completes it in the browser, and receives a token for your account. See [Organizations and permissions](/documentation/flockx-mcp/organizations-and-permissions#permissions) for the scopes.

## VS Code

Add Flockx to `.vscode/mcp.json` in your workspace (or your user MCP configuration):

```json
{
  "servers": {
    "flockx": {
      "type": "http",
      "url": "https://mcp.flockx.io/mcp"
    }
  }
}
```

Start the server from the editor's MCP view and finish the Flockx sign-in when prompted.

## Goose

Run `goose configure`, choose **Add Extension**, then **Remote Extension (Streamable HTTP)**. Name it `flockx`, enter `https://mcp.flockx.io/mcp`, and finish the Flockx sign-in when Goose opens your browser.

## Clients that only run local (stdio) servers

Bridge to Flockx with [`mcp-remote`](https://www.npmjs.com/package/mcp-remote), which runs locally and handles the OAuth sign-in:

```json
{
  "mcpServers": {
    "flockx": {
      "command": "npx",
      "args": ["-y", "mcp-remote", "https://mcp.flockx.io/mcp"]
    }
  }
}
```

## Custom agents and applications

If you are building your own agent, use any MCP client library that supports Streamable HTTP and OAuth (for example, the official MCP SDKs). Your application runs the OAuth sign-in for each person, stores their token, and sends it as a bearer token on every request. Each person only reaches the organizations they belong to.

* Send `X-Organization: <organization-id>` to pin one organization for the session, or pass `organization_id` on individual tool calls.
* Treat `publish-social-draft`, `linkedin-post-comment`, and `run-workflow` as actions that need the person's explicit approval.
* Read [How AI assistants use Flockx](/documentation/flockx-mcp/how-ai-assistants-use-flockx) for the recommended tool order.

## Next steps

* [Capabilities](/documentation/flockx-mcp/capabilities)
* [Troubleshooting](/documentation/flockx-mcp/troubleshooting)