> Documentation index: https://metorial.com/llms.txt. Every page is available as Markdown by adding .md to its URL.

# One MCP gateway URL for every employee, or one URL per server?
URL: https://metorial.com/docs/platform/guides/one-url-or-one-per-server

Give every employee the portal Magic MCP URL and let sign-in decide the tools. Use a per-server URL only for one client or job that needs one app.

---

Give every employee one URL: your portal's Magic MCP URL. It is the same address for everyone, and each person's sign-in decides which tools are behind it. Use a per-server URL only when a client or job should reach a single integration.

**What you'll learn**

* Which URL to hand out
* When a per-server URL fits better
* Where to find both URLs

**Before you start**

* A portal with at least one shared integration
* For the CLI steps, [install `metorial-admin` and sign in](https://metorial.com/docs/build/sandboxes#install-the-tools)

## When each option fits

|                   | One portal URL                                                         | One URL per server                                                    |
| ----------------- | ---------------------------------------------------------------------- | --------------------------------------------------------------------- |
| What it reaches   | Every integration the signed-in person may use and selected at sign-in | One Magic MCP server                                                  |
| Who it suits      | Employees in Claude, ChatGPT, Cursor, Claude Code, Codex               | A script, a single-purpose agent, or a client that should see one app |
| Sign-in           | OAuth through your identity provider                                   | OAuth, or a token for unattended use                                  |
| What you maintain | One entry per client, unchanged when you add integrations              | One entry per server in each client                                   |

With one URL, access changes happen in Metorial. Share a new integration with a group and its members get it without touching their client config.

## Hand out the portal URL

### 1. Get the URL

The portal home page shows it on the **Magic MCP URL** card. From the CLI, it is the `magic_mcp_url` field:

```bash
metorial-admin portals list
metorial-admin portals get <portal-id>
```

### 2. Add it to a client

Add the URL as a remote HTTP MCP server. In Claude Code:

```bash
claude mcp add --transport http metorial <your-magic-mcp-url>
```

### 3. Sign in

The client opens Metorial's consent screen. The person picks the integrations this client may use and, under **Tool Access**, every tool or specific tools.

## Use a per-server URL

Each Magic MCP server has its own URL, the `url` of its endpoint:

```bash
metorial-admin magic-mcp servers list --search github
metorial-admin magic-mcp servers get <server-id>
```

A person can put one of their own integrations into a local client with the `metorial` CLI. `metorial client list` prints the client identifiers.

```bash
metorial list
metorial client list
metorial install <client-identifier> <integration-id>
```

For jobs with no person present, see [CI and scheduled jobs](https://metorial.com/docs/platform/guides/mcp-access-for-ci-and-scheduled-jobs).

## Troubleshooting

### "A server- or endpoint-specific portal route is required unless you use a target-linked magic MCP token"

A token that is not linked to one server was sent to the portal URL. Use the server's URL with that token, or sign in to the portal URL with OAuth.

### "Missing access token. Please provide a valid token in the "Authorization" header or as a "token" query parameter."

The client called the URL without signing in. Start the client's OAuth sign-in. In Claude Code, run `/mcp` and select the server.

## Next steps

* [Supported clients](https://metorial.com/docs/platform/clients): where to paste the URL in each AI client
* [Different tools for different teams](https://metorial.com/docs/platform/guides/different-tools-for-different-teams): one URL, different access per group
* [Limit which tools an agent sees](https://metorial.com/docs/platform/guides/limit-tools-to-keep-context-small): keep the tool list short per client