Foundry

Help Center

Foundry MCP Overview

What Foundry's MCP server lets AI apps and coding agents do, the public and signed-in addresses, signing in with OAuth or a personal token, and the log of every change an agent makes.

Foundry MCP and AI Agents · 6 min read

Foundry runs one Model Context Protocol (MCP) server for the whole site. Connect Claude, ChatGPT, Claude Code, Codex, Cursor, or any other MCP client to read public Foundry data without signing in, or sign in to act within the areas and permissions you grant.

What the Server Does#

Without signing in, an agent can search the Marketplace, courses, projects and open roles, read public profiles and the public Alloy Home feed, and read a product's Package X-Ray summary and its publisher's Proofline. It can also look up the Glint SDK's rules, API and engine guides while it builds a game.

Signed in, it works with your stores and listings, your courses and lessons, your projects, Hubs and Kanban cards, Alloy Home and your inbox, only in the areas you allowed. Every call is checked again against your real permissions on Foundry at that moment. An agent can never do more than you could do yourself.

Foundry doesn't run an AI model for this. The app you connect runs the model, and Foundry's server answers its calls.

Endpoints#

Address Acts for Sign-in
https://api.joinfoundry.xyz/mcp You A connected app's OAuth access token, or a personal token.
https://api.joinfoundry.xyz/mcp/public Anyone None. Public tools only, showing what a signed-out visitor sees. An Authorization header is ignored.

The signed-in address offers every public tool too. Configs made before November 26, 2026 may use https://api.joinfoundry.xyz/api/mcp, which works the same way; use /mcp for new setups.

Protocol#

Limits#

Limit Counted for
120 calls a minute Each account and address, and each personal token or connected app, on /mcp.
30 write calls a minute Each personal token or connected app.
120 calls a minute Each address on /mcp/public.

Each call in a JSON-RPC batch counts on its own. Some write tools also count toward the site's own limit for that action, such as posting or sending messages. Going over a call limit returns 429 with Retry-After: 60. Going over a write limit makes that tool call fail with a message to try again shortly.

Signing In#

The signed-in address needs a credential. A request without one gets 401 with a WWW-Authenticate header that points to Foundry's OAuth metadata, so apps that support MCP sign-in start it on their own. Setup for each app is in Connect an AI Client.

Connect an App With OAuth#

Claude, ChatGPT, Claude Code, Codex and Cursor open Foundry in your browser when you connect them. You sign in with your usual Foundry sign-in, including two-step sign-in, and see a consent page with:

The app only ever gets areas it asked for and you approved. Every connection is approved on this page, and Foundry never reuses an earlier approval. Your account needs a verified email to approve an app.

Use a Personal Token#

A personal token is for config-file clients and any MCP client that doesn't sign in on its own. Create one in AI Agents settings, choose its areas, and send it as Authorization: Bearer followed by the token.

Warning

Anyone who has one of your tokens can use it within its areas until you revoke it. Keep tokens secret, like a password.

OAuth Reference for Client Developers#

Item Value
Issuer https://api.joinfoundry.xyz/oauth
Authorization server metadata https://api.joinfoundry.xyz/oauth/.well-known/oauth-authorization-server, also at https://api.joinfoundry.xyz/.well-known/oauth-authorization-server/oauth and https://api.joinfoundry.xyz/.well-known/openid-configuration/oauth
Protected resource metadata https://api.joinfoundry.xyz/.well-known/oauth-protected-resource/mcp
Authorization endpoint https://api.joinfoundry.xyz/oauth/auth
Token endpoint https://api.joinfoundry.xyz/oauth/token
Dynamic Client Registration https://api.joinfoundry.xyz/oauth/reg
Token revocation https://api.joinfoundry.xyz/oauth/token/revocation
Scopes The ten area scopes in Permissions and Scopes . offline_access is also accepted.

When Access Ends#

Ending a connection removes every token and code it was issued.

Activity Log#

Every write call is recorded before it runs: the app or token by name, the tool and the time, then the item it changed, or that it didn't complete. You see it under Agent Activity in AI Agents settings, and entries are kept for 180 days. Read tools aren't logged, and neither is foundry_get_upload_part_url, which only hands out an upload address; starting and completing the upload are logged.

What Foundry keeps, and how to end access, is in Privacy and Agent Limits. Every tool is listed in the Tool Reference.

Still stuck? Contact Support.