# AI Features

{% hint style="success" %}
This is the official documentation of the `@forestadmin/agent` Node.js agent.
{% endhint %}

## AI Features

Forest Admin provides two AI-related features for your agent:

### Self-hosted AI

By default, AI features in Forest Admin are processed by Forest Admin servers. With `addAi()`, you can route all AI requests through your own agent using OpenAI or Anthropic, ensuring your data never leaves your infrastructure.

[**Learn more about Self-hosted AI →**](/developer-guide-agents-nodejs/agent-customization/ai/self-hosted-ai.md)

### MCP Server

The MCP Server is an HTTP proxy that exposes your agent to external AI assistants (like Claude Desktop) via the [Model Context Protocol](https://modelcontextprotocol.io/). This allows AI tools to query and interact with your Forest Admin data.

[**Learn more about MCP Server →**](/developer-guide-agents-nodejs/agent-customization/ai/mcp-server.md)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.forestadmin.com/developer-guide-agents-nodejs/agent-customization/ai.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
