Servers and tools
Add MCP servers, give them credentials, decide who can find them, and review their tools.
Admins and owners manage servers under Servers and tools under Tools.

Connect with OAuth
Many hosted MCP servers sign people in with OAuth instead of an API key. For these there's nothing to copy:
- Click Add server and pick a service under Connect a service in one click: Linear, Sentry, Notion, Atlassian, Stripe, Supabase, Vercel, Intercom, monday.com, Canva, Figma, PayPal or SE Ranking.
- The service's sign-in page opens. Approve access.
- You're back in Gatehouse with the server added and its tools listed, turned off until you enable them.
Gatehouse registers itself with the service automatically and keeps the refresh token encrypted, renewing access on its own. Agents never see it.
The Credentials choice in the form decides whose account is used:
- Each person connects: you connect your own account now; everyone else connects theirs under Servers → Your connections the first time they need it. Agents act with each person's own access.
- Shared org credential: the account you sign in with is used for everyone's calls, for example a team or service account.
Any other server works the same way: paste its URL and Gatehouse checks how it signs in as you type. If it uses OAuth with self-registration, it says so and no token is needed. Services that need their own OAuth app (such as GitHub, Asana and HubSpot) ask for its client ID and secret, and Google Workspace has its own setup.
Add a server
Click Add server and pick how Gatehouse reaches it.
Remote URL. For hosted servers that speak Streamable HTTP, like GitHub (https://api.githubcopilot.com/mcp/), Linear, Sentry or your own internal servers.
- API token: paste the token the service gave you. Gatehouse sends it as
Authorization: Bearer <token>. You don't need to typeBearer. - Other headers: one
Name: valueper line, for services that use a different header such asX-API-Key.
Local command. For servers that run as a process next to Gatehouse, for example npx -y @modelcontextprotocol/server-postgres. Put secrets in Secret environment variables, one NAME=value per line. The process only sees PATH, HOME and its own variables, never Gatehouse's.
The server name becomes the tool prefix. A server named github gives tools like github__create_pull_request.
Credentials are encrypted with your master key. After saving, the console only shows that a credential exists, never its value.
Test connection
Every Add server and Edit server form has Test connection. It tries the settings before you save and tells you exactly what's wrong instead of a generic error:
- the host name doesn't exist, the connection is refused or times out, or the HTTPS certificate is bad;
- the server wants a credential, rejected the one you gave, or accepted it but lacks permission;
- the path is wrong, the address is a web page or an older SSE-only server, the service is rate-limiting or failing;
- a local command isn't installed, exits at startup (with its error output), or never answers.
When a key is rejected, Gatehouse also tries it in the other common header. If the service accepts it as X-API-Key instead of Authorization: Bearer (or the other way round), you get a one-click Send as X-API-Key fix. The Send token as choice on a saved server moves the stored key without retyping it.
As you type a URL, Gatehouse checks how the server signs in and picks the right option: no credential, an API key, or OAuth.
Service accounts
Some services let a machine sign in with a client ID and secret (OAuth client credentials) instead of a person signing in. In Add server, choose Service account, paste both, and click Test connection. Gatehouse gets its own short-lived tokens and renews them; nobody signs in, and the server is shared by everyone a policy allows.
If the service's sign-in server can't be found automatically, enter its Token URL.
MongoDB Atlas. Create an MCP configuration in Atlas (a read-only one is a good start). The repository's scripts/atlas-mcp-config.sh does it with the Atlas Admin API and prints the client ID and secret. Then add a server with:
- Server URL
https://mcp.mongodb.com/ - How it signs in: Service account
- Token URL
https://cloud.mongodb.com/api/oauth/token
Lock the MCP configuration to Gatehouse's IP address in Atlas, and keep it read-only unless agents must write. Note that aggregate can write through $out and $merge, so read-only roles matter more than tool names.
Shared or per-person credentials
- Shared: one organization credential, used for everyone's calls.
- Per person: each person connects their own account under Connect an agent. An agent can then never do more than its person could do directly.
Requestable or private
- Requestable: anyone can find this server's tools with
gatehouse__list_requestable_toolsand ask for access. Good for most internal tools. - Private: hidden from anyone who can't already use it. Requests for its tools fail as if they don't exist. Use this for sensitive systems.
When a server needs a credential
If the server rejects Gatehouse's request, the server card shows what went wrong and what to do, with a Fix connection button. Click it, use Test connection to try a new token, and save. Gatehouse reconnects right away. Network errors show Gatehouse can't reach this server with a hint to check the URL and firewall.
Review and enable tools
New tools start in Needs review and agents can't see them. On the Tools page:
- Expand a server to see its tools and descriptions.
- Select tools and click Enable selected, or Enable all on a server you trust completely.
- Turn tools off at any time. Agents stop seeing them within seconds.
Gatehouse scans each description for text that tries to instruct the model, like "ignore previous instructions" or requests to read files and send them elsewhere. Flagged tools show a warning. Read them before enabling.
Review changes
When you enable a tool, Gatehouse pins a hash of its name, description and input schema. If the server later changes any of these, the tool moves to Changed · paused and agents can't call it.
Open the tool to see the old and new definitions side by side, then Accept change or keep it off. This is how Gatehouse stops a "rug pull", where a server you trusted starts sending different instructions. Read more in Tool poisoning and rug pulls, explained.
Refresh
Refresh reconnects to a server and re-reads its tools. Gatehouse also refreshes when the server announces a change. You can refresh from the API with POST /api/upstreams/<name>/refresh.