# florentine-ai

> florentine-ai is a freemium MCP server for databases. MCP server that lets AI agents query MongoDB and MySQL data in plain language. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Freemium
- **Platforms:** API, CLI, Self-hosted
- **Repository:** https://github.com/florentine-ai/mcp
- **MCP Registry name:** io.github.florentine-ai/mcp
- **Categories:** [databases](https://ai-powered.com/categories/databases)
- **Listing updated:** 2026-11-21

## About

Connects an AI agent or desktop client to your MongoDB or MySQL databases so questions written in natural language are turned into database queries. The generated query runs against your connected database, and the agent receives the query, the raw rows, a natural language answer, or any combination of these depending on configuration.

The server is distributed as an npm package and runs over stdio. It supports a static mode for clients such as Claude Desktop, where settings live in the config file, and a dynamic mode for custom clients that inject per-request parameters. Bring-your-own-key access to OpenAI, Anthropic, Google or DeepSeek is required for query generation.

It suits developers building internal assistants or multi-tenant apps who want users to query their own data. Required inputs add filters to every generated query so each user only sees records they are allowed to access.

## Features

- **Natural language querying:** Converts plain-language questions into MongoDB aggregation pipelines or MySQL queries.
- **Configurable response types:** Returns the generated query, the raw result, a natural language answer, or a combination.
- **Multi-tenant data separation:** Adds required filters after query generation so users only access permitted records.
- **Automated schema exploration:** Lists active collections or tables with their keys and value types for the agent to use.
- **Semantic vector search:** Supports RAG-style search with automatically created embeddings.
- **Server-side sessions:** Optional session IDs keep chat context on the server between requests.

## Good for

- Letting a support agent ask questions about customer records in plain English
- Adding a data question feature to a custom AI assistant or desktop app
- Giving Claude Desktop read access to a MongoDB or MySQL database through natural language
- Restricting analytics queries to a single tenant, account or date range

## Install

### Claude Code: Add with the CLI (Terminal)

```sh
claude mcp add mcp --env FLORENTINE_TOKEN='<FLORENTINE_TOKEN>' --env LLM_KEY='<LLM_KEY>' -- npx -y @florentine-ai/mcp
```

Add --scope user to use it in every project, or --scope project to share it in .mcp.json.

### Claude Code: Or share it with your project (.mcp.json)

```json
{
  "mcpServers": {
    "mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@florentine-ai/mcp"
      ],
      "env": {
        "FLORENTINE_TOKEN": "<FLORENTINE_TOKEN>",
        "LLM_KEY": "<LLM_KEY>"
      }
    }
  }
}
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@florentine-ai/mcp"
      ],
      "env": {
        "FLORENTINE_TOKEN": "<FLORENTINE_TOKEN>",
        "LLM_KEY": "<LLM_KEY>"
      }
    }
  }
}
```

Settings → Developer → Edit Config, then quit and reopen Claude Desktop.

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@florentine-ai/mcp"
      ],
      "env": {
        "FLORENTINE_TOKEN": "<FLORENTINE_TOKEN>",
        "LLM_KEY": "<LLM_KEY>"
      }
    }
  }
}
```

Use .cursor/mcp.json in a project to share it with the project.

### VS Code (~/.copilot/mcp-config.json)

```json
{
  "mcpServers": {
    "mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@florentine-ai/mcp"
      ],
      "env": {
        "FLORENTINE_TOKEN": "<FLORENTINE_TOKEN>",
        "LLM_KEY": "<LLM_KEY>"
      }
    }
  }
}
```

Or put the same entry in .mcp.json at your workspace root to share it.

### Codex: Add with the CLI (Terminal)

```sh
codex mcp add mcp --env FLORENTINE_TOKEN='<FLORENTINE_TOKEN>' --env LLM_KEY='<LLM_KEY>' -- npx -y @florentine-ai/mcp
```

### Codex: Or add to config.toml (~/.codex/config.toml)

```toml
[mcp_servers.mcp]
command = "npx"
args = ["-y", "@florentine-ai/mcp"]
env = { FLORENTINE_TOKEN = "<FLORENTINE_TOKEN>", LLM_KEY = "<LLM_KEY>" }
```

### Gemini CLI and Antigravity: Gemini CLI (~/.gemini/settings.json)

```json
{
  "mcpServers": {
    "mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@florentine-ai/mcp"
      ],
      "env": {
        "FLORENTINE_TOKEN": "<FLORENTINE_TOKEN>",
        "LLM_KEY": "<LLM_KEY>"
      }
    }
  }
}
```

Or run: gemini mcp add -s user -e FLORENTINE_TOKEN='<FLORENTINE_TOKEN>' -e LLM_KEY='<LLM_KEY>' mcp npx -- -y @florentine-ai/mcp

### Gemini CLI and Antigravity: Antigravity (~/.gemini/config/mcp_config.json)

```json
{
  "mcpServers": {
    "mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@florentine-ai/mcp"
      ],
      "env": {
        "FLORENTINE_TOKEN": "<FLORENTINE_TOKEN>",
        "LLM_KEY": "<LLM_KEY>"
      }
    }
  }
}
```

Use .agents/mcp_config.json to add it to one workspace only.

### Devin Desktop (~/.config/devin/mcp_config.json)

```json
{
  "mcpServers": {
    "mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@florentine-ai/mcp"
      ],
      "env": {
        "FLORENTINE_TOKEN": "<FLORENTINE_TOKEN>",
        "LLM_KEY": "<LLM_KEY>"
      }
    }
  }
}
```

On Windows the file is %APPDATA%\\devin\\mcp_config.json. Use .devin/mcp_config.json to share it with a project.

### Cline (cline_mcp_settings.json)

```json
{
  "mcpServers": {
    "mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@florentine-ai/mcp"
      ],
      "env": {
        "FLORENTINE_TOKEN": "<FLORENTINE_TOKEN>",
        "LLM_KEY": "<LLM_KEY>"
      }
    }
  }
}
```

Open it from the MCP Servers icon → Configure → Configure MCP Servers.

### Zed (Zed settings.json)

```json
{
  "context_servers": {
    "mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@florentine-ai/mcp"
      ],
      "env": {
        "FLORENTINE_TOKEN": "<FLORENTINE_TOKEN>",
        "LLM_KEY": "<LLM_KEY>"
      }
    }
  }
}
```

Open it with zed: open settings file. Merge context_servers into the settings you already have.

### JetBrains AI Assistant and Junie: AI Assistant (Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add)

```json
{
  "mcpServers": {
    "mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@florentine-ai/mcp"
      ],
      "env": {
        "FLORENTINE_TOKEN": "<FLORENTINE_TOKEN>",
        "LLM_KEY": "<LLM_KEY>"
      }
    }
  }
}
```

The AI Assistant docs only show command and args. If the env block is ignored, use Junie for this server.

### JetBrains AI Assistant and Junie: Junie (~/.junie/mcp/mcp.json)

```json
{
  "mcpServers": {
    "mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@florentine-ai/mcp"
      ],
      "env": {
        "FLORENTINE_TOKEN": "<FLORENTINE_TOKEN>",
        "LLM_KEY": "<LLM_KEY>"
      }
    }
  }
}
```

Use .junie/mcp/mcp.json to share it with a project.

### Kiro (~/.kiro/settings/mcp.json)

```json
{
  "mcpServers": {
    "mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@florentine-ai/mcp"
      ],
      "env": {
        "FLORENTINE_TOKEN": "<FLORENTINE_TOKEN>",
        "LLM_KEY": "<LLM_KEY>"
      }
    }
  }
}
```

Use .kiro/settings/mcp.json to add it to one workspace only.

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@florentine-ai/mcp"
      ],
      "env": {
        "FLORENTINE_TOKEN": "<FLORENTINE_TOKEN>",
        "LLM_KEY": "<LLM_KEY>"
      }
    }
  }
}
```

## Tools

From the tool list in its README, going by the names, 1 of 2 tools reads data; 1 name doesn't say. From the server's own tool labels and tool names; not verified by us.

- `florentine_list_collections` (name suggests: reads): Lists all currently active collections or tables that can be queried, including descriptions, keys and value types.
- `florentine_ask`: Receives a question and returns a query, query result or answer depending on the returnTypes setting.

## FAQ

### Which databases are supported?

The server supports MongoDB and MySQL.

### Do I need my own LLM key?

Yes. The service works with a bring-your-own-key model using OpenAI, Anthropic, Google or DeepSeek, either saved in the Florentine.ai dashboard or passed as environment variables.

### What tools does the server expose?

It exposes florentine_list_collections, which lists active collections or tables, and florentine_ask, which answers a question.

### What do I need before installing?

Node.js 18 or later, a Florentine.ai account, a connected database with at least one analyzed and activated collection or table, and an API key.

### Is florentine-ai free?

florentine-ai has a free plan, with paid plans for more usage or features.

### How do I add florentine-ai to Claude Code?

Run this command in your terminal: claude mcp add mcp --env FLORENTINE_TOKEN='<FLORENTINE_TOKEN>' --env LLM_KEY='<LLM_KEY>' -- npx -y @florentine-ai/mcp

### What are the best alternatives to florentine-ai?

The closest alternatives to florentine-ai are MCP Database Server, Custom MCP Database, Mongodb MCP Server, Postgres MCP and Mysql MCP.

## Where this comes from

- Description: written from the project's README and its MCP Registry entry.
- Install steps: from the official MCP Registry entry.

## Alternatives

- [MCP Database Server](https://ai-powered.com/mcp/mcp-database-server): MCP Database Server is an open-source MCP server for databases.
- [Custom MCP Database](https://ai-powered.com/mcp/custom-mcp-database): Custom MCP Database is an open-source MCP server for databases.
- [Mongodb MCP Server](https://ai-powered.com/mcp/mongodb-mcp-server): Mongodb MCP Server is an open-source MCP server for databases.
- [Postgres MCP](https://ai-powered.com/mcp/postgres-mcp-2): Postgres MCP is an open-source MCP server for databases.
- [Mysql MCP](https://ai-powered.com/mcp/mysql-mcp-2): Mysql MCP is an open-source MCP server for databases.
- [MultiDB MCP](https://ai-powered.com/mcp/multidb-mcp): MultiDB MCP is an open-source MCP server for databases.
- [SynapCores](https://ai-powered.com/mcp/synapcores): SynapCores is a free MCP server for databases.
- [DB MCP](https://ai-powered.com/mcp/db-mcp): DB MCP is an open-source MCP server for databases.

---
Source: https://ai-powered.com/mcp/florentine-ai
