Skip to main content

Connect SDK

The official Connect SDK — @routemcp/connect-sdk — lets you embed the provider connection flow in any web app. It ships with both a vanilla JS/TypeScript API and a React component, with no runtime dependencies.

Installation

Requirements: Node >= 20, pnpm >= 9 (for development). No peer dependencies required for vanilla JS usage; React >= 19 required for the React subpath.

Vanilla JS / TypeScript


React

Import from the /react subpath:

CDN (no bundler)

For quick prototyping without a build step:

Package Details


REST API

The API follows REST conventions and works with any HTTP client:
  • cURL — command line
  • fetch / axios — JavaScript / TypeScript
  • requests / httpx — Python
  • net/http — Go
  • HttpClient — C# / .NET
See the Authentication Guide for code examples in JavaScript and Python.

OpenAPI Spec

The full OpenAPI specification is available for generating custom clients: