MCP Protocol

Integrate Serenities with AI platforms using the Model Context Protocol.

MCP Endpoint

https://app.serenitiesai.com/api/v1/mcp

All MCP requests use POST with JSON-RPC 2.0 format.

Connecting Multiple Accounts

AI platforms like Claude only allow each MCP server URL to be registered once globally. If you need to connect multiple accounts (e.g., personal and work), use a unique URL for each:

# Account 1 (default)
https://app.serenitiesai.com/api/v1/mcp
# Account 2 (add any unique slug)
https://app.serenitiesai.com/api/v1/mcp/account2
# Account 3 (use any identifier)
https://app.serenitiesai.com/api/v1/mcp/work

Note: The slug (e.g., account2, work) just makes the URL unique - authentication still happens via your API key. Use any text you like.

Authentication

Serenities MCP supports two authentication methods:

Option 1: API Key (Simple)

Create an API key in your account settings and use it in the Authorization header:

Authorization: Bearer mk_live_your_api_key

Option 2: OAuth 2.1 (Automatic)

MCP clients that support OAuth can connect without an API key. Simply add the server URL and you'll be prompted to login via your browser when the client connects.

OAuth Discovery: https://app.serenitiesai.com/.well-known/oauth-authorization-server
Resource Metadata: https://app.serenitiesai.com/.well-known/oauth-protected-resource/api/v1/mcp
Authorization: https://app.serenitiesai.com/api/mcp-oauth/authorize
Token Endpoint: https://app.serenitiesai.com/api/mcp-oauth/token
Registration: https://app.serenitiesai.com/api/mcp-oauth/register
PKCE Required: S256

OAuth tokens use the mcp_at_ prefix and expire after 1 hour. Refresh tokens are automatically used to get new access tokens.

Core Methods

initialize

Initialize the MCP session. Returns server capabilities and protocol version.

tools/list

List all available tools with their input schemas.

tools/call

Execute a specific tool with the provided arguments.

Example: List Tools

curl -X POST https://app.serenitiesai.com/api/v1/mcp \
  -H "Authorization: Bearer mk_live_your_api_key" \
  -H "Content-Type: application/json" \
  -d '{
    "jsonrpc": "2.0",
    "id": 1,
    "method": "tools/list"
  }'

Example: Call Tool

curl -X POST https://app.serenitiesai.com/api/v1/mcp \
  -H "Authorization: Bearer mk_live_your_api_key" \
  -H "Content-Type: application/json" \
  -d '{
    "jsonrpc": "2.0",
    "id": 1,
    "method": "tools/call",
    "params": {
      "name": "tables_listBases",
      "arguments": {}
    }
  }'

Available Tools

Explore the available MCP tools organized by category.

Base & Tables

Bases, tables, fields, views and records.

Sites

Site projects, pages, components, publishing and the site’s own settings.

Flows

Automation flows: create, change, run and read their runs.

Connected accounts

Connected accounts of the built-in connectors: add, test, switch on or off.

Linked Records

Links between records in different tables.

Sharing

Existing share links: change and revoke them, and read their activity; a new share is made with the Files tools.

Files

Files and folders: upload, download, move, and who may open them.

Store

Browse the Store, install templates and add-ons, and check what you own.

Automations

Webhooks, schedules, email triggers, secrets and sending mailboxes.

Functions

Every function, on your sites and in your workspace: create, change, run, versions and runs.

AI Agents

AI agents: build and run them, review runs and approvals, skills, memory and triggers.

Agent tasks

An agent’s task list: add, read, update and stop tasks.

Agent groups

Agent groups: which agents work together and who leads them.

Site events

A site’s event log and catalog: what a site can react to.

Account events

Account-wide events and the triggers that start flows or agents from them.

Installed Apps

The apps installed in your workspace and the tables and records they own.

Apps

Install the apps Serenities ships; build, save and release your own.

Journeys

Journeys: emails that send themselves from what people do. Create them, enrol people, read runs.

App & site actions

The actions of your installed apps and your sites that an AI may run, and running them.

App actions

Who may run an installed app’s actions, and whether each runs on its own or asks first.

Roles

Your workspace’s own roles: what each may do, and changing them.

App permissions

What an installed app may use (outside websites, connections, email), allowed or turned off.

App settings

An installed app’s own settings: see them, change them, reset one to its default.

Settings

How much one AI chat message may spend before it stops, for the whole workspace.

Your profile

Your own profile: name and photo.

Alert channels

Alert channels: where agents and automations send their messages to you.

Web address

Your web address on Serenities: check one is free and reserve it.

Pending changes

Changes waiting for your OK: what became of each, and cancelling one.

Built by

Members, who built what, and who you are in this workspace.

Take payments

Taking payments on your sites: turn it on or off and read the setting.

Notifications

Your notifications: list them, read one, dismiss them.

Open to anyone

What is open to anyone, and making a table or file reachable only through your site.

Content pages

Content pages: publish a table as pages on your site, list them, or stop publishing.

Site blog

Site blog: turn a site's blog on or off, and set its addresses, posts per page and RSS.

Plan and usage

Your plan and usage, what the next plan gives, and what was used and charged between two dates.

Challenges

Builder challenges: read the open ones and their entries; enter, withdraw or comment, and see your entry’s stats and share kit.

Own AI key prices

Model prices for your own AI keys: see them, and type or remove a price the provider does not publish.

Connect to AI Platforms

Most modern AI tools now support native HTTP/SSE transport for remote MCP servers. Only Claude Desktop (via config file) still requires mcp-remote.

Native HTTP/SSE
Most tools support this - No mcp-remote needed

Claude Code, Cursor, Windsurf, VS Code Continue, and VS Code Copilot all support HTTP transport directly.

Claude Code (CLI)

Native HTTP

One command from your project folder (Claude Code stores it for you):

claude mcp add --transport http serenities https://app.serenitiesai.com/api/v1/mcp \
  --header "Authorization: Bearer mk_live_your_api_key"

Or edit ~/.claude.json by hand and add it under your project path:

{
  "projects": {
    "/path/to/your/project": {
      "mcpServers": {
        "serenities": {
          "type": "http",
          "url": "https://app.serenitiesai.com/api/v1/mcp",
          "headers": {
            "Authorization": "Bearer mk_live_your_api_key"
          }
        }
      }
    }
  }
}

Replace /path/to/your/project with your actual project path (e.g., /Users/you/code/myapp). After adding, restart Claude Code or start a new session. Tools appear as mcp__serenities__*.

Cursor

Native HTTP/SSE

Cursor supports SSE and Streamable HTTP natively. Edit ~/.cursor/mcp.json:

{
  "mcpServers": {
    "serenities": {
      "url": "https://app.serenitiesai.com/api/v1/mcp",
      "headers": {
        "Authorization": "Bearer mk_live_your_api_key"
      }
    }
  }
}

Windsurf / Codeium

Native HTTP/SSE

Edit ~/.codeium/windsurf/mcp_config.json:

{
  "mcpServers": {
    "serenities": {
      "serverUrl": "https://app.serenitiesai.com/api/v1/mcp",
      "headers": {
        "Authorization": "Bearer mk_live_your_api_key"
      }
    }
  }
}

VS Code (Continue Extension)

Native Streamable HTTP

Create ~/.continue/mcpServers/serenities.yaml:

name: Serenities
version: 0.0.1
schema: v1
mcpServers:
  - name: serenities
    type: streamable-http
    url: https://app.serenitiesai.com/api/v1/mcp
    headers:
      Authorization: Bearer mk_live_your_api_key

VS Code (Copilot / Native)

Native HTTP

Add to VS Code settings or .vscode/mcp.json:

{
  "servers": {
    "serenities": {
      "type": "http",
      "url": "https://app.serenitiesai.com/api/v1/mcp",
      "headers": {
        "Authorization": "Bearer mk_live_your_api_key"
      }
    }
  }
}
mcp-remote required
Only for Claude Desktop config file

Claude Desktop config file only supports stdio. Use npx mcp-remote as a bridge.
(On a Free, Pro or Max plan you can instead add it under Customize → Connectors → + Add → Add custom connector; Free allows one custom connector. On Team and Enterprise an organization Owner adds it under Organization settings → Connectors.)

Claude Desktop

mcp-remote

Edit your config file (or add it under Customize → Connectors → + Add → Add custom connector):

{
  "mcpServers": {
    "serenities": {
      "command": "npx",
      "args": [
        "mcp-remote",
        "https://app.serenitiesai.com/api/v1/mcp",
        "--header",
        "Authorization: Bearer ${API_KEY}"
      ],
      "env": {
        "API_KEY": "mk_live_your_api_key"
      }
    }
  }
}

macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%\Claude\claude_desktop_config.json

Any MCP Client (Generic)

Use these connection details for any MCP-compatible client:

Server URL: https://app.serenitiesai.com/api/v1/mcp
Transport: HTTP (POST with JSON-RPC 2.0)
Auth Header: Authorization: Bearer mk_live_your_api_key
Content-Type: application/json

Tip: If your MCP client supports native HTTP transport, use it directly. If it only supports stdio, use npx mcp-remote as a bridge.

Quick Setup Steps

1

Create an API Key

Open your profile menu > Profile > API Keys, press Create API Key and pick the permissions you need.

2

Copy Your API Key

Copy the key immediately - it will only be shown once!

3

Add to Your AI Tool

Paste the configuration above into your AI tool's MCP config file.

4

Restart Your AI Tool

Restart Claude Desktop, Cursor, or VS Code to connect to Serenities.