---
title: "How to use your MCP server with Claude: app and API | FluxOS MCP Blog"
description: "Two ways to connect Claude to a FluxOS MCP server: the app's connectors and the API's MCP connector. What works today, with ready-to-use examples."
url: "https://www.fluxosmcp.com/en/blog/how-to-use-your-mcp-server-with-claude-app-and-api"
lang: "en-US"
---

[Blog](https://www.fluxosmcp.com/en/blog) · Nov 25, 2026 · FluxOS MCP Team

# How to use your MCP server with Claude: app and API

[Leia este artigo em português](https://www.fluxosmcp.com/blog/como-usar-seu-servidor-mcp-no-claude-aplicativo-e-api)

“Claude” is several products, and each one connects to an MCP server in its own way. The terminal has [an article of its own](https://www.fluxosmcp.com/en/blog/how-to-connect-claude-code-to-your-mcp-server). This one covers the other two: the **app** (claude.ai and the desktop app) and the **API**, for anyone building their own system.

Let’s get straight to the point that causes the most confusion: one of them works today with no caveats, and the other depends on your account.

## Before you start: address and key

You need two things, and both are in FluxOS MCP:

- **The server address.** On the **Conexão** (Connection) tab of the published server (or, for the client, on the **Ferramentas e conexão** (Tools and connection) page of the portal). It looks like `https://SEU-DOMINIO/mcp/dados-publicos`, where `SEU-DOMINIO` is your domain.
- **An access key.** Created on the client’s **Chaves** (Keys) tab. It starts with `amk_` and is shown only once.

In the examples, the server is `dados-publicos` from the [OpenAPI tutorial](https://www.fluxosmcp.com/en/blog/tutorial-postal-codes-holidays-and-rates-in-your-ai-assistant-with-openapi), with tools for CEP (Brazilian postal code) lookups, holidays, and rates. Swap in your own.

FluxOS MCP speaks **Streamable HTTP** and authenticates **by key only**, sent in the `Authorization: Bearer` header. There is no OAuth. That determines which assistants can connect, as you will see.

## Path 1: the Claude API (works today)

If you are building a product on top of Claude, you do not need to write an MCP client. The API has an **MCP connector**: you pass the server address in the request itself, and Anthropic makes the connection, lists the tools, and runs the calls.

The feature is in beta and requires its own header. Every request needs **two parts that go together**: the server in `mcp_servers` and an `mcp_toolset` in `tools` that points to it by name.

```bash
curl https://api.anthropic.com/v1/messages \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $ANTHROPIC_API_KEY" \
  -H "anthropic-version: 2026-10-21" \
  -H "anthropic-beta: mcp-client-2025-11-20" \
  -d '{
    "model": "claude-opus-5-5",
    "max_tokens": 1000,
    "messages": [{"role": "user", "content": "What is the address for CEP 01001-000?"}],
    "mcp_servers": [
      {
        "type": "url",
        "url": "https://SEU-DOMINIO/mcp/dados-publicos",
        "name": "dados-publicos",
        "authorization_token": "amk_SUA_CHAVE"
      }
    ],
    "tools": [
      {
        "type": "mcp_toolset",
        "mcp_server_name": "dados-publicos"
      }
    ]
  }'

```

The same thing in Python:

```python
import anthropic

client = anthropic.Anthropic()

response = client.beta.messages.create(
    model="claude-opus-5-5",
    max_tokens=1000,
    messages=[{"role": "user", "content": "What is the address for CEP 01001-000?"}],
    mcp_servers=[
        {
            "type": "url",
            "url": "https://SEU-DOMINIO/mcp/dados-publicos",
            "name": "dados-publicos",
            "authorization_token": "amk_SUA_CHAVE",
        }
    ],
    tools=[{"type": "mcp_toolset", "mcp_server_name": "dados-publicos"}],
    betas=["mcp-client-2025-11-20"],
)

print(response)

```

What to know before you use it:

- **The FluxOS MCP key goes in `authorization_token`.** Anthropic’s documentation describes the field as a Bearer token, which is how FluxOS MCP expects to receive the key.
- **The address must start with `https://`** and be reachable from the internet. The connection is made from Anthropic’s servers, not from your machine.
- **Tools only.** Of the MCP protocol, the connector uses tool calls, which is exactly what FluxOS MCP publishes.
- **If either of the two parts is missing, the API rejects the request.** Every server in `mcp_servers` needs an `mcp_toolset` with the same name.

In the response, the calls appear in blocks of their own: `mcp_tool_use`, with the tool and the arguments, and `mcp_tool_result`, with what the server returned. If your code reads only the first block of the response, change it to go through all of them.

### Allow only what you need

By default, every tool on the server is available. To allow only some, turn the default off and turn them on one by one:

```json
{
  "type": "mcp_toolset",
  "mcp_server_name": "dados-publicos",
  "default_config": { "enabled": false },
  "configs": {
    "consultar_cep": { "enabled": true }
  }
}

```

This adds to the control FluxOS MCP itself provides, where the key already defines which tools it can reach. The key’s limit always applies, no matter what your code asks for.

## Path 2: the Claude app (depends on the account)

claude.ai and the desktop app have **custom connectors**: you enter the address of an MCP server and it starts showing up in your conversations. The path is **Customize → Connectors → Add custom connector**. On team plans, an administrator adds it in the organization settings.

The caveat is authentication. The connector form was designed for OAuth. There is a **Request headers** section for entering a fixed credential such as the FluxOS MCP key, but Anthropic’s documentation describes it as a feature **in beta, available to a limited set of organizations** and filled in by an administrator.

In practice:

- **If the Request headers section shows up for you:** enter the `Authorization` header with the value `Bearer amk_SUA_CHAVE` and finish.
- **If it doesn’t:** on your account, the app has no way to send the key. No setting in FluxOS MCP gets around that today.

We could not confirm whether individual accounts see this section or only organizations do. Open the form on your account before you promise anyone that it works.

Also worth knowing: the app’s connector connects **from Anthropic’s cloud**, so the server has to be reachable from the internet.

### What about a local bridge?

It is common to find tutorials that use a go-between program on your computer (the one mentioned most is `mcp-remote`) so the app can talk to a remote server while sending a header. That is a community practice, it does not appear in the official documentation, and we have not tested it. If you go that route, remember that the key sits in a configuration file on the machine.

## When it won’t connect

The server responds with a code that tells you why:

- **401:** the key is missing, wrong, revoked, or expired. Check that you copied the whole key.
- **402:** the client’s subscription is awaiting payment.
- **403:** the client’s subscription is suspended or canceled.
- **429:** the key went over its per-minute or per-day limit. The message says how many seconds to wait before trying again.

If a tool does not show up, check that the server is **published** and that the tool is among those allowed for that key.

## Which one to choose

- **You write code and want to see it working now:** [Claude Code](https://www.fluxosmcp.com/en/blog/how-to-connect-claude-code-to-your-mcp-server).
- **You are building a product:** the API, with the MCP connector.
- **You want to use it in the app:** first check whether your account has the header option.

The same server also works with [Grok](https://www.fluxosmcp.com/en/blog/how-to-connect-grok-to-your-mcp-server) and with [Codex and the OpenAI API](https://www.fluxosmcp.com/en/blog/how-to-connect-chatgpt-and-codex-to-your-mcp-server).
