What is the Model Context Protocol (MCP)?
The Model Context Protocol (MCP) is an open standard for connecting AI assistants to external data and tools through natural language.What can the Forest MCP do?
The Forest MCP server lets AI tools like Claude, Dust, and others to:- Access collection schemas
- Securely query and browse your data
- Execute actions on records
Enabling the Forest MCP Server
There are 2 ways to configure the Forest MCP Server:- Standalone: the Forest MCP Server runs as an standalone service, pointing to your existing node.js or ruby back-end
- Mounted: the Forest MCP Server runs as part of your node.js back-end
Standalone Forest MCP Server
To run your Forest MCP Server as a standalone service, you will first need to download the mcp-server package:{your-standalone-server-url}/mcp
Mounted Forest MCP Server
This is only available with the node.js back-end. For other back-ends, refer to the Standalone method further down.
index.js file, simply call the mountAiMcpServer() method when creating the back-end, for example:
{your-agent-url}/mcp
Your back-end URL can be found in the Forest UI’s Project Settings, under the Environments tab.Note that each Environment has its own Back-end URL, and therefore its own Forest MCP Server URL.
Available tools
The Forest MCP server exposes the following capabilities:Data access
- Browse collections: View available collections and their schemas
- Query records: Search and filter records across collections
- Read relationships: Access related data through relationships
Actions
- Execute actions: Run actions on records
- Bulk operations: Perform operations on multiple records
- Approval workflows: Interact with approval workflows
Context
- Schema information: Get collection and field definitions
- Business rules: Access validation rules and constraints
- User permissions: Check what operations are allowed
Restrict tools
You can restrict which tools the MCP server exposes usingenabledTools. Only the tools you list will be available, and new tools added in future releases will NOT be automatically enabled, so your configuration stays safe over time.
enabledTools is not set, all tools are enabled by default.
describeCollection is always enabled, even if omitted from the list, as it is required for the MCP server to function properly.Connect your AI assistant
Your MCP endpoint is available at/mcp (<your-agent-url>/mcp when mounted, <your-standalone-server-url>/mcp when standalone). On first connection, a browser window opens for you to log in with your Forest credentials; the assistant then operates with that user’s permissions.
Use the MCP transport type
"http" (not "sse" or "url"): the Forest MCP server uses Streamable HTTP. Your URL should still use https://. Clients that rely on mcp-remote (Claude Desktop, Windsurf, JetBrains) require Node.js 18+ (some versions need 20+).Use cases
AI-assisted operations
Use Claude or other AI assistants to:- Answer questions about your data
- Generate reports and insights
- Automate routine tasks
- Perform data analysis
Example prompts
“Show me all pending orders from the last 24 hours”
“What customers have the highest lifetime value?”
“Execute the ‘Send Invoice’ action on order #12345”
Security
The Forest MCP server:- Respects all Forest permissions and roles
- Uses your environment’s authentication
- Logs all operations for audit purposes
- Never exposes sensitive data without proper access