MCP Server

circle-check

MCP Server

The MCP Server exposes your Forest Admin agent to external AI assistants (like Claude Desktop) via the Model Context Protocol (MCP)arrow-up-right.

Enable MCP

const agent = createAgent(options).addDataSource(/* ... */).mountAiMcpServer();

Your MCP endpoint will be available at {your-agent-url}/mcp.

circle-exclamation

Available tools

Tool
Description

list

Search and list records with filters and pagination

create

Create a new record

update

Update an existing record

delete

Delete one or more records

describeCollection

Get schema of a collection

listRelated

List related records

associate

Link records through a relation

dissociate

Unlink records from a relation

getActionForm

Get form fields for a smart action

executeAction

Execute a smart action

Standalone mode

Run the MCP server as a separate process:

Variable
Required
Default
Description

FOREST_ENV_SECRET

Yes

-

Your Forest Admin environment secret

FOREST_AUTH_SECRET

Yes

-

Authentication secret (must match your agent)

MCP_SERVER_PORT

No

3931

HTTP server port

Endpoint: {your-standalone-server-url}/mcp

Authentication

The MCP server uses OAuth. Users authenticate with their Forest Admin credentials, and the AI assistant operates with the same permissions as the authenticated user.

Last updated