Hosted server
The hosted server speaks streamable HTTP athttps://api.guild.ai/mcp. Your client needs only the URL: it discovers the OAuth settings from the server and registers itself.
Add the server
- Claude
- Claude Code
- Cursor
- VS Code
Add Guild as a custom connector. It works in Claude Desktop and on claude.ai, since both use your Claude account.On a Free, Pro, or Max plan:
- Go to Customize > Connectors and click Add custom connector.
- Enter
https://api.guild.ai/mcpas the server URL. - If Claude asks how to identify itself, choose Register automatically.
- Click Add, then click Connect next to Guild.
https://api.guild.ai/mcp. Each member then clicks Connect next to Guild under Customize > Connectors.To use Guild in a chat, click +, select Connectors, and turn Guild on.Approve access
The first time your client connects, it opens Guild in your browser:- Sign in to Guild if you aren’t already.
- Review the page that reads wants access to your Guild account. It lists the permissions requested and where Guild sends you back.
- Click Allow.
Guild has not verified most MCP clients, so the consent page shows Guild has not verified this application. Only continue if you started the connection from a client you trust.
Permissions
The server asks for the scopes its tools use:
The tools the server offers change as Guild adds them. Your client lists the current set when it connects.
What the tools do
Each tool runs one Guild API call as you, so it can reach only what your account and the approved scopes allow.
Tools that only read are marked read-only, and tools that change or remove something are marked so your client can ask you before it runs them.
For example, you can ask your client to “create an agent that summarizes new GitHub issues, install it in my workspace, and schedule it every morning.”
How the OAuth flow works
You don’t need this to connect a standard MCP client. It is here for anyone building their own.- Discover. An unauthenticated request to
https://api.guild.ai/mcpreturns401with aWWW-Authenticateheader that points to the protected resource metadata athttps://api.guild.ai/.well-known/oauth-protected-resource/mcp. That document names the authorization server,https://api.guild.ai, whose metadata is athttps://api.guild.ai/.well-known/oauth-authorization-server. - Register. The client registers itself with
POST /v1/oauth/register(dynamic client registration, RFC 7591). Every client is public: it gets no secret. Each redirect URI must usehttps, orhttpon a loopback address. - Authorize. The client sends the user to
https://api.guild.ai/v1/oauth/authorizewith a PKCES256code challenge and the scopes it wants. The user approves on the consent page. - Exchange. The client exchanges the code at
https://api.guild.ai/v1/oauth/token. Access tokens last one hour; refresh tokens last 90 days. - Call. The client sends the access token as
Authorization: Bearer <token>on every request tohttps://api.guild.ai/mcp.
Local server
The Guild CLI includes an MCP server that runs on your machine over stdio. It uses your CLI sign-in and defaults to your configured workspace.Set it up
-
Install the CLI and sign in:
-
Add the server to your client. In a project,
guild setupdoes this for Claude Code: it writes the server to.mcp.jsonalong with Guild’s coding skills. To add it by hand instead:
- Claude Code
- Cursor
- VS Code
.mcp.json in your project root:"--workspace", "<workspace-id-or-name>" to args. If the server fails to start with Not authenticated, run guild auth login again.
The local server’s tools, their parameters, and what they return are listed in MCP server.
Search these docs over MCP
These docs have their own MCP server athttps://docs.guild.ai/mcp, with no sign-in. It searches and reads this documentation, so a coding assistant can look things up while it works: