• Use Cases
  • Pricing
  • Security
  • Docs
Sign InStart free

The outbound integration layer for SaaS products: emit once, then let Meshes handle routing, retries, fan-out, and delivery history.

  • Terms of Service
  • Privacy Policy
  • Acceptable Use Policy
  • Cookie Policy

© Copyright 2026 Meshes, Inc. All Rights Reserved.

  • Getting Started
    • What is Meshes?
    • Quickstart
    • Core Concepts
    • API Overview
  • AI Tools
    • Cursor Rules
    • MCP Server
    • LLMs Docs
  • API Documentation
    • API Reference
    • Authentication
    • Results
    • Rate Limiting
    • SDKs
    • Integrations & Rules
  • Events
    • Publishable Keys
    • Send Events
    • Bulk Event Ingestion
  • Embed & Sessions
    • Quickstart
    • Session API Overview
    • Launch URL and Iframe Bootstrap
    • Iframe Message Contract
    • Session Roles and Scopes
    • Workspace Pages Available in Embed
    • Session Refresh Lifecycle
    • Iframe Sizing and Resize Handling
    • OAuth and Connection Setup Behavior
    • Security Model
    • Troubleshooting
  • Integrations
    • ActiveCampaign
    • AWeber
    • Discord
    • HubSpot
    • Intercom
    • Mailchimp
    • MailerLite
    • Resend
    • Salesforce
    • SendGrid
    • Slack
    • Webhooks
    • Zoom

MCP Server

Model Context Protocol server for Meshes. Gives AI coding agents like Claude Code, Cursor, and Windsurf direct tool access to emit events, manage workspaces, inspect resources, update mappings, and manage embedded sessions.

The Meshes MCP server implements the Model Context Protocol to give AI coding agents direct access to the Meshes API. Instead of your agent guessing at endpoints, it gets 31 typed tools that cover event delivery, workspace discovery, routing rules, connection mappings, and embedded sessions.

This works with any MCP-compatible client: Claude Code, Claude Desktop, Cursor, Windsurf, and others.

Installation

The MCP server is available as a standalone repository: mesheshq/meshes-mcp-server.

Quick start (recommended)

Run directly with npx:

npx -y @mesheshq/mcp-server

The published package requires Node.js 20 or later.

Run from source

git clone https://github.com/mesheshq/meshes-mcp-server.git
cd meshes-mcp-server
npm install
npm run build
npm test

Configuration

The server needs your Meshes machine key credentials to authenticate. It automatically mints short-lived JWTs for each API request, so you never need to generate tokens manually.

Create or copy your machine keys from the Meshes dashboard under Profile -> API Keys. See Authentication for the underlying auth model.

You'll need these environment variables:

export MESHES_ACCESS_KEY=your_access_key
export MESHES_SECRET_KEY=your_secret_key
export MESHES_ORG_ID=your_organization_uuid

You can also use MESHES_ORGANIZATION_ID instead of MESHES_ORG_ID. If you are pointing at a non-default environment, set MESHES_API_URL too.

VariableRequiredDescription
MESHES_ACCESS_KEYYesMachine access key from the dashboard
MESHES_SECRET_KEYYesMachine secret key from the dashboard
MESHES_ORG_IDYes*Organization UUID
MESHES_ORGANIZATION_IDYes*Alias for MESHES_ORG_ID
MESHES_API_URLNoAPI base URL (defaults to https://api.meshes.io)

* Set either MESHES_ORG_ID or MESHES_ORGANIZATION_ID.

Cursor

Security note: These config files contain your secret key. They live in your home directory (not your project repo), so they won't be accidentally committed. Never commit access keys or secret keys to version control. Publishable keys are safe to commit.

Add to ~/.cursor/mcp.json:

{
  "mcpServers": {
    "meshes": {
      "command": "npx",
      "args": ["-y", "@mesheshq/mcp-server"],
      "env": {
        "MESHES_ACCESS_KEY": "your_access_key",
        "MESHES_SECRET_KEY": "your_secret_key",
        "MESHES_ORG_ID": "your_organization_uuid"
      }
    }
  }
}

Claude Desktop

Add to your claude_desktop_config.json:

{
  "mcpServers": {
    "meshes": {
      "command": "npx",
      "args": ["-y", "@mesheshq/mcp-server"],
      "env": {
        "MESHES_ACCESS_KEY": "your_access_key",
        "MESHES_SECRET_KEY": "your_secret_key",
        "MESHES_ORG_ID": "your_organization_uuid"
      }
    }
  }
}

Claude Code

claude mcp add meshes \
  -e MESHES_ACCESS_KEY=your_access_key \
  -e MESHES_SECRET_KEY=your_secret_key \
  -e MESHES_ORG_ID=your_organization_uuid \
  -- npx -y @mesheshq/mcp-server

Windsurf

Add to your Windsurf MCP configuration:

{
  "mcpServers": {
    "meshes": {
      "command": "npx",
      "args": ["-y", "@mesheshq/mcp-server"],
      "env": {
        "MESHES_ACCESS_KEY": "your_access_key",
        "MESHES_SECRET_KEY": "your_secret_key",
        "MESHES_ORG_ID": "your_organization_uuid"
      }
    }
  }
}

Available tools

The MCP server exposes 31 tools organized by resource type.

Workspaces

ToolDescription
meshes_list_workspacesList all workspaces in the organization
meshes_get_workspaceGet details for a specific workspace
meshes_create_workspaceCreate a new workspace
meshes_update_workspaceUpdate workspace properties
meshes_get_workspace_event_typesList event types configured for a workspace
meshes_get_workspace_resourcesList resources configured for a workspace

Connections

ToolDescription
meshes_list_connectionsList connections across the organization
meshes_get_connectionGet connection details
meshes_create_connectionCreate a new connection destination
meshes_update_connectionUpdate connection configuration metadata
meshes_delete_connectionDelete a connection
meshes_get_connection_actionsDiscover available destination actions
meshes_get_connection_fieldsGet destination field configuration for mappings
meshes_get_connection_default_mappingsGet default mappings for a connection
meshes_update_connection_default_mappingsUpdate default mappings for a connection

Rules

ToolDescription
meshes_list_rulesList all routing rules
meshes_get_ruleGet details for a routing rule
meshes_create_ruleCreate an event routing rule
meshes_delete_ruleDelete an event routing rule

Events

ToolDescription
meshes_emit_eventEmit a single event
meshes_emit_bulk_eventsEmit up to 100 events in one request
meshes_list_eventsList events across the organization
meshes_get_workspace_eventsList events for a workspace with filters
meshes_get_eventGet event details and delivery status
meshes_get_event_payloadGet event details including payload
meshes_retry_event_ruleRetry a failed rule delivery

Integrations

ToolDescription
meshes_list_integrationsGet metadata about supported integrations

Sessions

ToolDescription
meshes_create_sessionMint a new embedded workspace session
meshes_list_sessionsList embedded sessions for a workspace
meshes_refresh_sessionRefresh an existing session token
meshes_revoke_sessionRevoke an embedded session

Example workflows

"Set up a signup event that goes to HubSpot"

The agent will:

  1. Call meshes_list_workspaces to find the right workspace
  2. Call meshes_list_connections to find the HubSpot connection
  3. Call meshes_get_connection_actions to discover available actions (e.g., create_or_update_contact)
  4. Call meshes_create_rule to bind user.signup → HubSpot → create_or_update_contact

"Why didn't my payment.failed event reach Salesforce?"

The agent will:

  1. Call meshes_get_workspace_events with event=payment.failed and status=failed
  2. Call meshes_get_event to inspect rule_events for error details
  3. Call meshes_get_event_payload to verify the payload was correct
  4. Call meshes_retry_event_rule after you fix the underlying issue

"Emit a test event to verify my setup"

The agent will call meshes_emit_event with a test payload and confirm the event was accepted.

"Create an embedded session for a customer workspace"

The agent will:

  1. Call meshes_list_workspaces to find the target workspace
  2. Call meshes_create_session to mint a session for that workspace
  3. Call meshes_list_sessions to confirm the active session inventory
  4. Call meshes_refresh_session or meshes_revoke_session later as needed

Testing

You can test the MCP server locally with the MCP Inspector:

npx @modelcontextprotocol/inspector npx -y @mesheshq/mcp-server

Also available

  • Cursor Rules: For editors that support project-level rules files — teaches the agent the Meshes API without needing MCP.
  1. Installation
    1. Quick start (recommended)
    2. Run from source
    3. Configuration
    4. Available tools
    5. Example workflows
    6. Testing
    7. Also available