Connect to the MCP Server
Use this page to find authentication requirements and connection instructions for the Aembit MCP Server.
Prerequisites
Section titled “Prerequisites”Before connecting any client, ensure you have:
- Feature enabled: Your Aembit administrator must enable the MCP Server for your Aembit Tenant: Aembit Tenants serve as isolated, dedicated environments within Aembit that provide complete separation of administrative domains and security configurations.Learn more. If the feature isn’t enabled, you receive a 403 error when attempting to connect.
- API Token: Generate or retrieve your API Token from the Aembit Admin UI:
- Log in to the Aembit Admin UI.
- Navigate to your Profile page.
- Generate or copy your API Token.
- MCP Service URL: Find your MCP Service URL in the Aembit Admin UI Profile screen.
MCP service URL
Section titled “MCP service URL”Your MCP Service URL follows this pattern:
https://<tenantId>.mcp.useast2.aembit.io/mcpReplace <tenantId> with your tenant identifier (visible in your Admin UI Profile screen).
Authentication
Section titled “Authentication”All connections require a Bearer token in the Authorization header:
Authorization: Bearer <apiToken>Resource set scoping Optional
Section titled “Resource set scoping ”By default, queries use your default resource set. To scope queries to a different resource set, include:
X-Aembit-ResourceSet: <resourceSetId>Resource sets provide separation of concerns, allowing you to segment event data access by team, environment, or project. Learn more about Resource Sets.
Choose your client
Section titled “Choose your client”Select your AI tool to get connection instructions:
- Claude Desktop - Connect the Claude desktop app to query Aembit events
- MCP Inspector - Test and explore the MCP endpoint interactively
- GitHub Copilot - Integrate with GitHub Copilot’s agent mode
- Visual Studio - Connect from Visual Studio’s MCP support
Troubleshooting
Section titled “Troubleshooting”The following sections help resolve common connection, authentication, and query issues:
Connection issues
Section titled “Connection issues”Server not detected or not appearing:
- Verify your configuration file exists in the correct location.
- Check that the JSON syntax is valid (no trailing commas, proper quotes).
- Restart your IDE or application fully.
Connection timeout:
- Verify your endpoint URL matches the format shown in your Admin UI Profile screen.
- Check that the transport type is correct for your client (Streamable HTTP for MCP Inspector).
Authentication errors
Section titled “Authentication errors”403 Forbidden error:
- Your administrator hasn’t enabled the MCP Server for your tenant.
- Your API token is invalid or expired.
- Generate a new token from the Aembit Admin UI Profile page.
Permission denied:
- Confirm your API token is correct and hasn’t expired.
- Verify that you have enabled the MCP Server feature for your tenant. Contact your Aembit administrator if needed.
Query issues
Section titled “Query issues”No data returned or empty results:
- Adjust your filter parameters (try a broader time range).
- Verify you’re querying the correct resource set.
- Check that the resource set contains data for the period.
“Tool not found” errors:
- You may need to enable the MCP Server for your Aembit Tenant.
- Contact your Aembit administrator to verify feature enablement.
Prompts and examples
Section titled “Prompts and examples”For example prompts and prompt engineering best practices, see the Prompt Library.