Mitigate AI Platform

MCP Servers

How to configure MCP servers for all users or embedded chat users

There are two ways to add MCP Server

  1. MCP Server for all users (available to all users, shared authentication token)
  2. MCP Server for embedded chat users (each user has their own authentication token)

MCP Server for embedded chat user

Key Pair Distribution

Two RSA key pairs are required for secure JWT token exchange:

Key PairPurposeWebsiteMitigate AI PlatformMCP Server
Signing Key PairEnsures token authenticity (RS256)Private key (signs JWT)Public key (verifies signature)Public key (verifies signature)
Encryption Key PairProtects token confidentiality (RSA-OAEP, A256GCM)Public key (encrypts JWT)Private key (decrypts JWT)-

Create Workspace and configure key pairs

  1. Go to AdminWorkspaces
  2. Click Add Workspace
  3. Enter Name
  4. Click Save Workspace
  5. Click on Configure Embedded Chat and configure key pairs

Create MCP Server for all users

  1. Go to AdminMCP Servers
  2. Click Add MCP Server
  3. Enter Name, URL and Header (e.g. Authorization: Bearer secretkey123)
  4. Select Workspaces
  5. Click Save MCP Server

Create MCP Server for embeded chat users

  1. Go to AdminMCP Servers
  2. Click Add MCP Server
  3. Enter Name, URL and Header (e.g. Authorization: Bearer %{jwt_token})
  4. Select Workspaces
  5. Click Save MCP Server

The %{jwt_token} placeholder will be replaced by the decrypted JWT token in embedded chat.

On this page