Skip to content
MCP serverOfficial: Published to the official MCP Registry by the GitHub account or domain it is named after, which owns its code or website.

florentine-ai

MCP server that lets AI agents query MongoDB and MySQL data in plain language

Runs locally

florentine-ai is a freemium MCP server for databases. It runs locally on your machine and is started by your AI client.

Pricing
Freemium
Platforms
API, CLI, Self-hosted
Runs
Locally
Access
Needs a secret key or token
Version
0.2.1
Listing updated

Similar MCP servers

Install

Add with the CLI

Run in a terminal

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.

Or share it with your project

Add to .mcp.json

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

Claude Code setup guide

Add to claude_desktop_config.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.

Claude Desktop setup guide

Add to ~/.cursor/mcp.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.

Cursor setup guide

Add to ~/.copilot/mcp-config.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.

VS Code setup guide

Add with the CLI

Run in a terminal

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

Or add to config.toml

Add to ~/.codex/config.toml

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

Codex setup guide

Add to your client's MCP settings (most use this shape)

{
  "mcpServers": {
    "mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@florentine-ai/mcp"
      ],
      "env": {
        "FLORENTINE_TOKEN": "<FLORENTINE_TOKEN>",
        "LLM_KEY": "<LLM_KEY>"
      }
    }
  }
}
  • Gemini CLI and Antigravity

    Gemini CLI

    Add to ~/.gemini/settings.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

    Antigravity

    Add to ~/.gemini/config/mcp_config.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.

    Gemini CLI and Antigravity setup guide

  • Devin Desktop (formerly Windsurf)

    Add to ~/.config/devin/mcp_config.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.

    Devin Desktop setup guide

  • Cline

    Add to cline_mcp_settings.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.

    Cline setup guide

  • Zed

    Add to Zed settings.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.

    Zed setup guide

  • JetBrains AI Assistant and Junie

    AI Assistant

    Add to Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add

    {
      "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.

    Junie

    Add to ~/.junie/mcp/mcp.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.

    JetBrains AI Assistant and Junie setup guide

  • Kiro

    Add to ~/.kiro/settings/mcp.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.

    Kiro setup guide

Using several servers? Build one config file with the MCP config generator.

Configuration

  • FLORENTINE_TOKENYour Florentine.ai API key, get it from https://florentine.ai/dashboardRequired
  • LLM_SERVICEThe LLM service to use, one of 'openai', 'anthropic', 'google' or 'deepseek' (must only be provided if you did not set it in your Florentine.ai account)
  • LLM_KEYYour API key for the LLM service (must only be provided if you did not set it in your Florentine.ai account)
  • SESSION_IDSession ID for maintaining server-side context across requests
  • RETURN_TYPESStringified JSON array of return types for the response
  • REQUIRED_INPUTSStringified JSON array of values for required inputs keys

About florentine-ai

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.

Tools this server provides (2)

Taken from the project documentation; the running server may differ.

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_collectionsName 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.

What it does

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

Pricing

Freemium

Free account to start; paid usage tiers apply via plan limits

florentine-ai 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.

How AIPoweredBot checks servers