Skip to main content
An MCP server exposes your end users’ connected apps as tools an AI agent can call. Create one in the Refold dashboard, connect an MCP client, and run your first tool call.

Prerequisites

  • A Refold account with at least one linked account created
  • At least one connector configured with valid credentials (see Connector setup)
  • An MCP client installed (Claude Desktop, Cursor, or Windsurf), or use the built-in Embed Chat, which needs no client install
Each linked account gets its own Server URL. Create one linked account per end user before proceeding.

Create your MCP server

1

Open MCP Servers

In the Refold dashboard, go to Embedded Agents > MCP Servers and click + Create Server.
MCP Servers list with Create Server dialog
2

Name and describe the server

Set a Name and Description. The AI agent reads these when it connects, so write for the model. Be specific about which apps and actions are available.
FieldGoodAvoid
NameAcme CRM IntegrationMy Server
DescriptionAccess Salesforce and HubSpot. Create, update, and query contacts, deals, and accounts.Integration server
3

Add applications

Go to the Applications tab and add the apps you want the agent to access. Each app’s actions and workflows become available as MCP tools.
Adding a Workday application with available actions
4

Copy the Server URL

Go back to the Overview tab and copy the Server URL. The token authenticates one linked account, so issue a separate URL for each end user.Refold accepts the token two ways. Use whichever your MCP client supports. In the examples below, <domain> is your Refold host (for example, app.refold.ai); the Server URL you copy from the dashboard already has it filled in.
https://<domain>/mcp/v1/<token>/<server_id>
Server Overview tab showing Server URL and toggles

Connect a client

1

Open the config file

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

Add your server

{
  "mcpServers": {
    "refold": {
      "url": "https://<domain>/mcp/v1/<token>/<server_id>"
    }
  }
}
Alternatively, go to Settings > Connectors > Add custom connector and paste the Server URL directly.
Adding Refold MCP server in Claude Desktop
3

Restart Claude Desktop

After restarting, you should see the tools icon in the chat input. This confirms your server’s tools are loaded.

Test the connection

In your MCP client, run:
Prompt
What tools do you have available?
The agent lists the available tools from your connected apps. Then try an actual operation:
Prompt
List all contacts from Salesforce
Every tool call returns a JSON result. A success looks like this, where data holds the app’s response:
{ "success": true, "data": { ... } }
A failure returns { "success": false, ... } with the reason. If the contacts come back under data, the connection works end to end.
If an app returns an auth error, the linked account may not have completed the auth flow for that app. Check the linked account’s connection status in the dashboard.

Troubleshooting

ProblemLikely causeFix
No tools visibleServer URL is wrong or token is invalidRe-copy the URL from the dashboard. Use the full URL including token and server ID.
”Unauthorized” errorToken expired or linked account deletedGenerate a fresh token for the linked account.
Action fails with auth errorApp credentials missing or expiredHave the end user re-authenticate through your auth flow.
Tools visible but calls failApp not properly configuredCheck the app’s configuration in Connectors and verify scopes.

Next steps

Connect from agent code

Wire the Server URL into your agent framework with the Refold SDK.

Authentication

Understand how tokens work, per-user URLs, and access control.