MCP Gateway Integration

Connect AI assistants to Fastn's MCP server i.e. native tools, dynamic tools, per-customer scoping, and integration patterns.

Prerequisites: Understanding of the Model Context Protocol (MCP). A Fastn project with at least one configured connector.

Fastn implements an MCP server that exposes your integrations as tools for AI assistants. Any MCP-compatible client Claude Desktop, custom agents, or your own AI features can discover and invoke these tools.

What the MCP gateway provides

Native tools

Six built-in tools are always available:

Tool
What it does

fastn_list_integrations

List all active integrations for a customer

fastn_get_integration_status

Get detailed status of a specific integration

fastn_create_flow

Create a new automation flow from a specification

fastn_get_event_history

Retrieve recent events for a customer

fastn_get_usage_summary

Get quota usage summary

fastn_search_entities

Search CDM entities across integrations

Dynamic tools

In addition to the native tools, the gateway auto-generates tools from your connector capabilities. If a customer has Slack and Shopify connected, the gateway exposes tools like:

  • slack_send_message

  • slack_list_channels

  • shopify_list_orders

  • shopify_get_customer

Dynamic tools are scoped per tenant — a customer who only connected Slack will only see Slack tools. A tenant with Slack and Shopify sees both.

Connecting to the MCP server

MCP server URL

Your MCP server URL follows this pattern:

Claude Desktop configuration

Add Fastn as an MCP server in Claude Desktop's configuration:

After configuration, Claude can discover and invoke Fastn tools directly in conversation.

Screenshot: Claude Desktop with Fastn MCP tools visible in the tool list and showing both native and dynamic tools.

Programmatic integration

For custom AI applications, connect to the MCP server using any MCP client library:

Using with the Anthropic API

If you're building with Claude via the API, pass the MCP server in your request:

Screenshot: API response showing Claude using a Fastn MCP tool and returning integration data.

Per-customer tool scoping

This is what makes Fastn's MCP gateway multi-customer-aware. When an AI assistant invokes a tool, the gateway:

  1. Identifies the customer from the request context

  2. Checks which connectors the customer has active

  3. Only exposes tools for the customer's connected apps

  4. Executes the tool using the customer's credentials

Customer A (connected: Slack, Shopify) sees:

Customer B (connected: Slack only) sees:

No Shopify tools appear for Customer B because they haven't connected Shopify.

Resource listing

The MCP gateway also implements the MCP resource protocol, allowing AI assistants to discover available data:

Resources provide read access to data without executing actions — useful for AI assistants that need to answer questions about a customer's integration state.

Integration patterns

Pattern 1: AI-powered support

Your support team uses Claude Desktop with Fastn MCP tools. When a customer reports an issue, the agent can:

  1. Look up the customer's integrations (fastn_list_integrations)

  2. Check integration status (fastn_get_integration_status)

  3. Search for related entities (fastn_search_entities)

  4. View recent events (fastn_get_event_history)

Pattern 2: In-product AI assistant

Your SaaS product has an AI chat feature. You connect it to Fastn via MCP so users can:

  • "Show me my recent Shopify orders" → shopify_list_orders

  • "Send a summary to my Slack channel" → slack_send_message

  • "What integrations do I have active?" → fastn_list_integrations

Pattern 3: Automated operations

A monitoring agent runs on a schedule, uses MCP tools to check integration health, and creates alerts when something fails:

  • Check all customers' integration status

  • Query event history for failures

  • Review usage against quotas

  • Create notifications for the ops team

What you've learned

  • The 6 native MCP tools and how dynamic tools are generated from connectors

  • How to connect Claude Desktop, custom apps, and the Anthropic API to Fastn's MCP server

  • How per-customer tool scoping works

  • Three integration patterns for real-world use

Last updated

Was this helpful?