Overview
The Model Context Protocol (MCP) is an open standard that lets AI agents interact with external tools and services through a unified interface. Aster Agents supports connecting to any remote MCP server, giving your agents access to thousands of third-party tools without custom integration work. When an agent has MCP servers assigned, it automatically discovers and can call all tools provided by those servers during conversations.Authentication types
Aster supports two ways to authenticate against a remote MCP server:OAuth client modes
OAuth servers come in two flavors depending on how the OAuth client is provisioned:Aster also supports Client ID Metadata Documents (CIMD) — the latest MCP authorization spec’s preferred registration model. When a server’s authorization endpoint advertises
client_id_metadata_document_supported (e.g. Tableau’s hosted MCP), Aster presents a URL-based client ID pointing at its hosted metadata document instead of registering a client dynamically. This happens automatically in dynamic mode; no extra configuration is needed.Transports
If the server documentation doesn’t specify, try Streamable HTTP first.
Prerequisites
- An MCP server URL (hosted by a third party or self-hosted)
- For API Key servers: any required credential (API key, Bearer token, etc.)
- For OAuth servers in pre-created mode: the ability to create an OAuth app on the provider and whitelist a callback URL
- Admin access to your Aster Agents organization (to add/edit/delete servers)
Setup Guide
1
Add an MCP Server
Navigate to Control Hub > Integrations and click Add integration. At the top of the
library, click Add a custom MCP server (admins only) to open the server dialog.If the server you want is already listed in the library, add it directly from its card instead —
the dialog opens pre-filled.
2
Choose an authentication type
- API Key — add authentication headers (e.g.
Authorization: Bearer your-api-key). - OAuth — choose an OAuth client mode (see below).
3
Configure the server
Fill in the server details:
- Name: A display name (e.g. “HubSpot”, “Cloudflare Docs”)
- Transport: Streamable HTTP (recommended) or SSE
- URL: The server’s MCP endpoint URL
- Auth fields: headers (API Key) or OAuth client mode + credentials (OAuth)
4
(OAuth, pre-created mode) Whitelist the callback URL
The dialog displays Aster’s OAuth callback URL — for example
https://www.asteragents.com/api/mcp/oauth/callback. Add this exact URL as an allowed
redirect URI in the provider’s OAuth app, then paste the provider’s client ID and secret into Aster.5
Connect or test
- API Key servers: click the play button to test connectivity. A successful test reports how many tools were discovered.
- OAuth servers: click Connect to start the OAuth flow. After you consent on the provider’s site, you’ll return to Aster with the server marked Connected.
6
Assign to an Agent
Go to Control Hub > Agents, edit an agent, and scroll to the MCP Servers section. Check the servers you want this agent to use. For OAuth servers, each user who chats with the agent must connect their own account first.
The OAuth connection flow (for users)
- An admin adds an OAuth MCP server in Integrations.
- Each user clicks Connect on that server card.
- Aster redirects them to the provider’s consent screen.
- After they approve, the provider redirects back to Aster’s callback, which stores a per-user session.
- The server now shows Connected for that user. Their agents can call its tools with their own token.
- Users can Disconnect at any time, which deletes their stored session.
OAuth connections are per user. Two users connecting to the same server each get their own
independent session and token. Scheduled tasks run with the connection of the user who created the task.
Staying connected
Access tokens are refreshed automatically in the background, so a connection stays alive indefinitely on a healthy server — including providers that rotate refresh tokens on every use. If a connection can no longer be refreshed (the provider revoked it, or the grant expired), Aster flags it rather than failing silently:- The server card in Control Hub > Integrations shows Connection error with a Connect button to reauthorize.
- In chat, a banner appears above the composer: “Your connection needs to be reconnected before this agent can use its tools.”
Example: Public MCP Servers
Many services offer hosted MCP servers you can connect directly:How It Works at Runtime
When a user sends a message to an agent with MCP servers:- Resolve — Aster loads the agent’s assigned servers and, for OAuth servers, the calling user’s connection.
- Connect — Aster opens a connection to each enabled server (API key servers use stored headers; OAuth servers use the user’s token).
- Discover — Tools are fetched from each server via the MCP protocol.
- Namespace — MCP tool names are prefixed per server (e.g.
hubspot_12__create_contact) so they never collide with built-in tools or with another server’s tools. - Execute — The model can call any discovered tool during the conversation.
- Cleanup — Connections are closed after the response completes.
Security
- Secrets redacted — Auth headers and OAuth client secrets are redacted (
[REDACTED]) in API responses. Editing a server preserves the stored secret unless you replace it. - URL validation — Server URLs are validated before saving and before any test/connect. In production,
httpsis required and localhost / private / link-local / cloud-metadata addresses are blocked. - Organization-scoped — Only admins can add, edit, or delete MCP servers. All users can connect their own OAuth accounts.
- Per-agent assignment — Each agent only accesses the servers explicitly assigned to it.
- Inline-config testing is admin-only — Testing an unsaved server config (arbitrary URL/headers) is restricted to admins.
Troubleshooting
Connection Failed (API Key)
Connection Failed (API Key)
- Verify the URL is correct and the server is running
- Check that you selected the right transport type (HTTP vs SSE)
- Ensure any required auth headers are included
OAuth Connect fails or loops
OAuth Connect fails or loops
- Confirm the callback URL is whitelisted exactly in the provider’s OAuth app
- Verify the client ID and secret are correct (re-enter the secret if unsure)
- Check the requested scopes are permitted for the OAuth app
No Tools Discovered
No Tools Discovered
- The server may be running but has no tools registered
- Some servers require authentication before exposing tools
Agent Not Using MCP Tools
Agent Not Using MCP Tools
- Confirm the MCP server is assigned to the agent in Control Hub
- Ensure the server is enabled
- For OAuth servers, confirm the current user has connected their account
- Check the server card in Integrations for a Connection error badge — if present, click Connect to reauthorize
- Try prompting the agent to use a specific tool by name