Skip to main content

Grant MCP servers and profiles to a project

Enterprise Tier

A project controls which Model Context Protocol (MCP) servers it can use and exposes them to AI clients through MCP profiles. Scoped to a project, MCP falls under the same isolation as models: a project sees only its own servers, and its profiles are reachable only with its own keys, on the endpoints of the data planes labelled with it.


An MCP server exposes a tool or data source to AI clients; an MCP profile aggregates one or more servers behind a single endpoint that clients connect to once.

Persona: Platform operator or project administrator working in the Admin Console.

Estimated time: 15 to 25 minutes for the first profile.

Outcomes​

By the end of this guide:

  • The MCP servers a project may use are granted to it.
  • A profile that bundles the chosen servers is published on every endpoint that serves the project.
  • The profile's isolation is understood: it is reachable only with the project's key, including on a hostname that serves other projects.

Prerequisites​

  • The project MCP permission on the project, held by the Project Owner and Super Admin roles. From 0.8.0, listing, adding, and removing a project's MCP servers needs this permission, and the MCP Admin role does not include it: an MCP Admin who manages a project's servers also needs Project Owner on that project, or Super Admin. A Viewer can list the project's servers but not add or remove them.
  • At least one data plane labelled with the project, so the profile has an endpoint. See Serve a project from a data plane.
  • The MCP servers available in the organization's catalog. Cataloging and governing servers is covered in Govern MCP server access.

Step 1: grant MCP servers to the project​

  1. Use the project switcher to select the project.
  2. In the project menu, open Catalog → MCP Servers and enable the servers this project may use. Before 0.12.0 the project's page had an MCP Servers tab, and its old links open this page.

A project can see and use only the servers granted to it. A server that is not granted is neither listed for the project nor callable through it, which is what keeps one project's tools separate from another's. From 0.10.0, removing a catalog server from a project also detaches it from the project members' legacy MCP profiles, which kept serving the server before, and editing the tools of a server the project no longer grants is refused with PERMISSION_DENIED.

Grant servers through the API​

The same grants are made through the admin API. From 0.8.0:

  • ListProjectMcpServerCandidates returns the enabled catalog servers the project does not have yet, ordered by name, with a case-insensitive name search. A page holds 50 servers by default and at most 200 (page_size); the response's next_page_token, sent back as page_token, fetches the next page and is empty on the last. It needs the same permission as adding a server.
  • AddProjectMcpServer and RemoveProjectMcpServer grant and withdraw a server.
  • ListProjectMcpServers returns each granted server's name, description, icon, enabled state, and last update, including servers disabled in the catalog since they were granted. It takes a page (50 servers by default, 200 at most, sorted by server_id, name, updated_at, or is_enabled), a name search, and an enabled filter, and reports the total of matching servers. A request that sets none of these returns every server in one response, as before 0.8.0.

Step 2: build an MCP profile​

A profile bundles one or more of the project's granted servers into a single endpoint an MCP client connects to.

  1. In the Developer Console, select the project in the project switcher, then open Settings → My MCP Profiles. Select Add MCP Profile, then enter a profile name.
  2. Select Add Server, choose from the servers granted to the project, and enable the tools wanted from each.
  3. Set the profile's Security Policy to API Key or OAuth. On a self-hosted install, an OAuth profile takes its identity provider from the project's gateway auth policy, which is created first. See Call an MCP tool with an identity provider token.

Register the project's own OAuth client​

A server that authenticates users through an OAuth provider needs an OAuth client. A client set up in the Admin Console for the organization applies to every project. From 0.13.0 a project can hold clients of its own, and where both exist for the same server, the project's own client wins.

  1. Use the project switcher to select the project.
  2. In the project menu, open Catalog → MCP OAuth Clients. The page lists the project's own clients and is empty until one is added.
  3. Select Add OAuth client. The fields are the ones described for the organization page in Govern MCP server access.
  4. Use the search box and the status filter to find a client later. A client is edited or deleted from its row.

The project's clients can also be managed through the project-scoped MCP OAuth clients API. A client cannot be deleted while an MCP server still references it.

The profile is published at a path on every hostname declared by a data plane labelled with the project. Securing MCP credentials and identity is covered in Secure MCP secrets and identity.

From 0.10.0, profiles follow project membership more closely:

  • My MCP Profiles no longer shows profiles in projects the user has left. A project admin adds the user back to bring that project's profiles back.
  • Profile names that differ only in case can exist side by side.
  • A server attached from outside the catalog can be removed from a profile but no longer edited. To change it, the server is added to the catalog and granted to the project.
  • Test connection needs a signed-in member of the profile's project, tests only the servers granted to that project, and no longer refreshes an expired OAuth token. A server that reports an expired token is authorized again.
  • Through the API, ListMCPProfiles and GetMCPProfile take all_projects, which spans every project the caller is a member of and works only for a signed-in session acting for itself, and include_tools, which adds each attached server's name, icon, and tools.
  • A profile created before projects existed keeps its stored organization and its owner keeps full control of it. It is served from the default project's gateway, unless the default organization has its own gateway: then the profile's endpoint moves to that gateway, and MCP clients that use the old endpoint are updated to the one the profile shows.

From 0.11.0, Test connection and Playground tool calls in the Developer Console call a catalog server at its own URL from the management plane, and do not use a profile or a data plane hostname. Where outbound traffic from the management plane is restricted, it is allowed to reach the URLs of the catalog servers the projects use.

From 0.13.0, on a project served by a data plane on 0.13.0 or later, Test connection runs from the data plane that serves the profile's project, lists the tools of the servers that data plane can reach, and names the data plane when it cannot reach one. Projects on older data planes keep testing from the management plane. Add Server no longer waits for a passing test on a non-OAuth server that needs a token; the rule for OAuth servers is unchanged. A failed test says whether the server could not be reached, refused the token, or answered with another error.

From 0.11.0 a data plane no longer serves a catalog server at https://<hostname>/mcp/s/<server>, and the Developer Console no longer shows these addresses. An MCP client reaches a catalog server only through an MCP profile, which applies the project's access, credentials, and tool selection. A client that used a /mcp/s/ address is moved to the profile's Connection URL: a key sent to the old address gets 404, and a token gets 401.

From 0.12.0, the people in a project share its profiles. A user with project.mcp_profile.read lists and uses every profile in the project, a user with project.mcp_profile.edit edits and deletes them, and a creator always edits their own. Profiles in the default project stay creator-only. The Developer Console marks each profile Mine or Shared. See Aggregate MCP servers into a profile for the developer view, and Manage roles and permissions for the permissions.

From 0.12.0, Playground tool calls on a profile go through the profile's MCP address on the data plane, so the profile's authentication applies. An API key or OAuth profile asks for its API key or a sign-in token in the Playground's configuration panel, and an API key profile accepts only its creator's key. For Playground tool calls on a profile, this replaces the 0.11.0 behavior described above.

From 0.13.0, an oauth profile also has an access policy that decides which callers are admitted, set from the project's Catalog → MCP Servers page in the Admin Console. A new oauth profile admits no callers until one is set. See Set the access policy.

Step 3: confirm profile isolation​

The profile inherits the project's isolation.

  • It is reachable only on hostnames whose data planes serve the project. Called on a hostname whose data plane does not serve the project, the path is not served and returns 404.
  • It accepts only the project's keys. A key from another project is refused with 403.
  • On a data plane on 0.7.0 or later that serves several projects on one hostname, each project sees only its own MCP servers and profiles on that hostname; one project's profiles never replace another's.

The developer-side workflow of connecting a client such as Claude Code, Cursor, or an MCP-capable editor to the profile URL is covered in Aggregate MCP servers into a profile.