Skip to main content
Glama
OutboundSync MCP

OutboundSync MCP

Official
by outboundsync

OutboundSync MCP

Remote MCP server for OutboundSync — tools over the live OutboundSync API v1, built with the MCP TypeScript SDK v2 (@modelcontextprotocol/server).

Endpoint: https://mcp.outboundsync.com/mcp (streamable HTTP)

Documentation: https://outboundsync.com/docs/mcp/

This is the product MCP — authenticated (Authorization: Bearer osapi_…) and it operates on your OutboundSync account data. The marketing site runs a separate, public, read-only website MCP at https://outboundsync.com/api/mcp/ for site lookups (integrations, pricing, comparisons, docs) — no API key, no account data.

Protocol: Serves MCP 2026-07-28 and legacy 2025-era clients from the same URL (createMcpHandler dual-era / legacy: 'stateless').

Tools

Every live /api/v1 resource route is a tool. GET /openapi.json and GET /openapi.yaml are omitted (auth-free spec documents, not account resources).

Writes (retry_sync, retry_source_syncs, destination/webhook replay, blocklist pause/resync, webhook create/update/delete/rotate/test, workspace rename, domain allow/update/remove, invitation create/cancel, and member role change/removal) require a key with the write scope. Workspace writes also need the matching role permission (workspace.update, domains.manage, members.invite, members.update_role, or members.remove). Confirm with the user before calling them.

Tool

API

Use it for

get_me

GET /me

Auth check, key scope, accessible connections, and workspace (null for a legacy key). Call first.

get_account_status

GET /account/status

"Is sync working?" — blockers, warnings, per-connection readiness

get_account_metrics

GET /account/metrics

Volume rollup (from+to)

list_connections

GET /connections

CRM connection status and plan capabilities

list_sources

GET /sources

Sequencer paste URLs, config, destinations, reply relay

get_contact_outreach

GET /contacts/outreach

Prior outreach by email and/or LinkedIn/X URL

list_requests / get_requests_metrics / list_source_requests

GET /requests*

Inbound receipts

list_syncs / get_sync / get_syncs_metrics / list_source_syncs

GET /syncs*

CRM sync attempts

retry_sync

POST /syncs/:id/retry

Re-queue one failed CRM sync; no daily limit (write)

list_destinations / get_destination

GET /destinations*

Forwarding URLs

list_destination_deliveries / get_destination_delivery_metrics / list_deliveries

GET .../deliveries*

Forwarding delivery log

replay_destination_delivery

POST .../deliveries/:id/replay

Re-send a forwarding delivery (write)

list_reply_relays

GET /destinations/reply-relays

Reply-CC catalog

list_blocklists

GET /blocklists

Blocklist configs

pause_blocklist / resync_blocklist

POST /blocklists/:id/*

Pause or full CRM reload (write)

list_webhooks / get_webhook / create_webhook / update_webhook / delete_webhook

/webhooks

Platform webhook endpoints (account-scoped key)

rotate_webhook_secret / test_webhook / list_webhook_deliveries / replay_webhook_delivery

/webhooks/:id/*

Secrets, ping, deliveries (write where noted)

list_events / get_event

GET /events*

Platform event log

get_setup_status

GET /setup

Setup wizard progress: test sent, live sequencer traffic received

retry_source_syncs

POST /sources/:sourceId/syncs/retry

Bulk re-queue a source's errors from the last 30 days; once per 24h (write)

get_workspace / update_workspace

GET / PATCH /workspace

Workspace id, role, and permissions; rename (write, workspace.update)

list_workspace_domains / create_workspace_domain / update_workspace_domain / remove_workspace_domain

/workspace/domains

Allowed email domains (write + domains.manage to change)

list_workspace_invitations / create_workspace_invitation / revoke_workspace_invitation

/workspace/invitations

Invite or cancel (write + members.invite to change)

list_workspace_members / update_workspace_member / remove_workspace_member

/workspace/members

Members and roles (write + members.update_role / members.remove)

Tool order is fixed for stable client/LLM prompt caches. Read tools set readOnlyHint: true; every write sets destructiveHint explicitly (destructive: update_webhook, delete_webhook, rotate_webhook_secret, update_workspace_member, remove_workspace_domain, revoke_workspace_invitation, and remove_workspace_member). Observability list tools require from and to — full ISO-8601 timestamps (2026-08-01T00:00:00Z), max 31 days apart, validated locally — and page at most 500 records per call. The three *_metrics tools return aggregate counts and accept a date range only, no paging.

Related MCP server: ServerDock

Authentication

The server is a thin auth-forwarding proxy: your Authorization: Bearer osapi_<key> header is passed through to the OutboundSync API, which validates it. Requests without a token get HTTP 401 with WWW-Authenticate: Bearer realm="OutboundSync API".

Modern (2026-07-28) clients probe server/discover first — send the same Bearer header on that request. A 401 on discover is not treated as "legacy server"; credentials must be present on every call.

Client compatibility

Client

Header auth

Notes

Cursor

✅

headers in mcp.json with ${env:OUTBOUNDSYNC_API_KEY} — see examples/mcp.json

Claude Code

✅

claude mcp add --transport http with --header — see examples/claude-code.sh

MCP Inspector / direct HTTP

✅

Send the header directly

claude.ai / Claude Desktop remote connectors

❌

These expect OAuth or no auth. Tracked in OS-1370.

Security notes

  • Configure keys via environment variables (${env:...} interpolation), not inline — inline keys land in shell history and config files.

  • Treat API keys like secrets: anyone with read access can obtain source paste URLs.

  • The server never logs tokens.

Development

Requires Node.js 22+ (ESM, matching CI and the Docker image). The package uses "type": "module".

npm install
npm run dev          # tsx watch src/server.ts (port 3000, override with PORT)
npm test             # node:test via tsx (auth, retry budget, schemas, dual-era handler)
npm run typecheck    # tsc --noEmit (includes tests)
npm run build        # tsc -> dist/ (tests excluded)
npm run check:versions  # package.json / server.json / plugin.json / lockfile agree
npm run check:api-coverage  # tool table matches api-sync/openapi.snapshot.json (see api-sync/README.md)
npm run release         # dry-run next CalVer; release:apply writes bumps + CHANGELOG
npm start            # node dist/server.js

CI (.github/workflows/ci.yml) runs the version and API coverage checks, typecheck, tests, build, and npm audit on every PR.

The tool table is kept in step with the live OpenAPI spec by the API sync workflow, which opens a PR for a human to merge — see api-sync/README.md.

Local endpoint: http://localhost:3000/mcp. Health check: GET /health.

Unauthenticated discovery (no Bearer required): the SEP-2127 Server Card at GET /mcp/server-card (also served at the legacy /.well-known/mcp/server-card.json), the AI Catalog at GET /.well-known/ai-catalog.json, and GET /.well-known/oauth-protected-resource.

For local testing you can put OUTBOUNDSYNC_API_KEY=osapi_... in your environment and set OUTBOUNDSYNC_ALLOW_ENV_KEY=true; requests without an Authorization header then fall back to that key.

Both are required, and the fallback is refused outright when NODE_ENV=production. The opt-in exists so that a deploy which merely forgets to set NODE_ENV cannot silently serve every unauthenticated caller using the operator's own API key. Never set OUTBOUNDSYNC_ALLOW_ENV_KEY in a deployed environment — the server logs a warning at boot when it is active.

Environment variables:

Var

Default

Purpose

PORT

3000

Listen port

OUTBOUNDSYNC_API_BASE_URL

https://app.outboundsync.com/api/v1

Upstream API base

OUTBOUNDSYNC_API_KEY

—

Dev-only auth fallback; inert without OUTBOUNDSYNC_ALLOW_ENV_KEY

OUTBOUNDSYNC_ALLOW_ENV_KEY

—

Must be exactly true to enable the dev fallback. Never in production

MCP_ALLOWED_HOSTS

per NODE_ENV

Comma-separated Host allowlist for /mcp

MCP_ALLOWED_ORIGINS

per NODE_ENV

Comma-separated Origin allowlist for /mcp (see below)

NODE_ENV

—

production enables Host/Origin allowlists on /mcp for mcp.outboundsync.com and disables the env-key fallback

Deployment

Versioning

Releases use calendar versioning YYYY.MM.DD.N (UTC date + daily sequence). The Fly image bakes in package.json’s version; GET /health and the MCP discovery card report that value.

Do not bump versions in PRs — after merge to main and green CI, the Release (CalVer) workflow bumps all version artifacts on main, tags v<version>, and publishes a GitHub Release (multiple releases the same UTC day increment N). CI enforces check:versions only.

After a release, the Deploy workflow (.github/workflows/deploy.yml) checks out the new release tag, runs flyctl deploy --remote-only, and waits until /health reports the new version. It needs the FLY_API_TOKEN repository secret (fly tokens create deploy -a outboundsync-mcp); without it the job warns and skips. To deploy by hand:

fly deploy
curl -sS https://mcp.outboundsync.com/health | jq .version

See CHANGELOG.md and AGENTS.md for the full release workflow.

docker build -t outboundsync-mcp .
docker run -p 3000:3000 outboundsync-mcp

The image runs with NODE_ENV=production (Host/Origin validation on /mcp for mcp.outboundsync.com, env-key fallback off) as the non-root node user. Hosting target for mcp.outboundsync.com is still TBD.

DNS-rebinding guards (Host / Origin) apply only to /mcp. /health and / stay open so platform probes can use an internal Host. Local/dev allows loopback hostnames on /mcp only. Both lists are overridable via MCP_ALLOWED_HOSTS / MCP_ALLOWED_ORIGINS without a code change.

Browser clients are not supported. The default Origin allowlist admits no origin a browser would send, and CORS preflight is not handled — so the browser MCP Inspector and web-based clients cannot connect. This is deliberate for a Bearer-token server: it will be revisited with OAuth. Non-browser clients (Cursor, Claude Code, CLI, server-to-server) send no Origin header and are unaffected.

Requests that fail to parse (oversized or malformed bodies) and unknown routes answer with JSON, never HTML, and never include a stack trace.

Error handling

Tool errors return isError: true with a machine-readable body: auth_required, unauthorized, forbidden (remediation matches the cause: key scope, account-scoped key, or platform webhooks off), rate_limited (includes retryAfterSeconds), bad_request (400/422), not_found (404), timeout, or upstream_error. Every error carries the upstream HTTP status when there was one. Retries use an overall ~30s budget per call — a 429 whose Retry-After exceeds the remaining budget returns immediately instead of hanging.

5xx responses are retried on GET only. A 5xx can arrive after the API has already committed a write, so retrying a POST/PATCH/DELETE would risk double-queuing a CRM sync or creating a duplicate webhook endpoint. A 504 is never retried: it means the API already spent its 20s query budget, so the agent should narrow from/to or pass connectionId instead. 429s are retried on every method (a 429 means the request was not processed).

Output schemas are deliberately permissive (see src/types/permissive.ts): they document the response shape for the model, but an added, removed, or retyped upstream field degrades to pass-through rather than causing the SDK to discard the payload.

Discovery listings (after production URL is live)

Registry/directory artifacts are in-repo; submit only after https://mcp.outboundsync.com/health is up. Checklist and paste-ready copy: docs/listing-kit.md.

Artifact

Purpose

server.json

Official MCP Registry (com.outboundsync/mcp, remote + Bearer header)

.cursor-plugin/plugin.json + mcp.json

Cursor plugin / cursor.directory

glama.json

Glama ownership claim

Claude Connectors and OpenAI Plugins require OAuth — see OS-1369 / OS-1370. Broader GTM MCP patterns (Databar / ZoomInfo) are pinned in docs/FUTURE-gtm-mcp-patterns.md; revisit OS-1377 when more API endpoints exist.

Pre-deploy checklist

  • mcp.outboundsync.com is live — Fly iad, cert issued, Cursor get_me verified (OS-1254–1258). DNS-AID _mcp._agents is published from the website repo (npm run publish:dns-aid) after OS-754 docs merge.

  • Coordinate upstream rate limiting — the API guard limits per IP (120/min) and all MCP traffic egresses from one IP, so one heavy client can rate-limit every other customer. Per-key limiting (or an egress allowlist) must land upstream before GA

  • NODE_ENV=production set (Host/Origin validation on, env-key fallback off)

  • OUTBOUNDSYNC_ALLOW_ENV_KEY not set in the deployed environment

  • Smoke-test with a real key: get_me → get_account_status → list_sources, and confirm no tool returns an output validation error

  • Re-diff src/types/schemas.ts against the v1 OpenAPI document. Drift is no longer fatal (output schemas are permissive), but the declared shapes are what the model reads

  • After deploy: run docs/listing-kit.md (registry → aggregators → Cursor plugin)

Note: the published OpenAPI document covers every wrapped route. Once api-sync/openapi.snapshot.json exists, npm run check:api-coverage enforces one tool per non-discovery operation.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables AI agents and assistants to manage a SutramX workspace by listing and changing monitors, reading check results, handling incidents, and managing status pages through the SutramX API. Access can be limited to read-only or optionally allow destructive operations.
      64 npm
      MIT
    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables managed access to workspace file operations, background tasks, Skills, and upstream MCP services through a unified web console with workspace-bound keys and explicit tool permissions.
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      Connects AI assistants and developer tools to a workspace so they can inspect pipelines, schemas, metrics, profiles, audiences, documentation, and service status, and perform approved control-plane actions such as managing audiences and transformations or triggering syncs.
      1
      MIT