March 1, 2026

featureintegrations

MCP Server with OAuth 2.1

Connect Claude and other AI agents to TSFM.ai with standards-based auth

MCP Server with OAuth 2.1

The TSFM.ai MCP (Model Context Protocol) server now supports OAuth 2.1 with PKCE for secure agent integration. This means AI assistants like Claude can connect to TSFM.ai and run forecasts on your behalf, using industry-standard authentication.

Standards-based authentication

Our OAuth implementation follows the latest RFCs:

  • RFC 8414 — OAuth 2.0 Authorization Server Metadata for automatic discovery
  • RFC 7591 — Dynamic Client Registration so agents can register themselves without manual setup
  • PKCE (RFC 7636) — Proof Key for Code Exchange to protect the authorization flow

Available tools

Once connected, AI agents have access to four MCP tools:

ToolDescription
forecastRun a single forecast with any supported model
forecastBatchSubmit up to 64 forecast requests in one call
listModelsBrowse all available time series foundation models
getModelByIdGet detailed information about a specific model

Getting started

To connect Claude Desktop to TSFM.ai, add the following to your MCP configuration:

{
  "mcpServers": {
    "tsfm-ai": {
      "url": "https://api.tsfm.ai/mcp"
    }
  }
}

Claude will handle the OAuth flow automatically, prompting you to authorize access through your browser.

Security

All tokens are scoped to forecast operations only. Refresh tokens are issued with a 30-day lifetime, and access tokens expire after 1 hour. You can revoke agent access at any time from your account settings.