mcp

v0.2.1
io.github.florentine-ai/mcp Checked 1 day ago Published 1 year ago

MCP server for Florentine.ai - Natural language to MongoDB aggregations

Values you need

VariableWhat it is
FLORENTINE_TOKENrequired secret Your Florentine.ai API key, get it from https://florentine.ai/dashboard
LLM_SERVICEoptional The 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_KEYoptional secret Your API key for the LLM service (must only be provided if you did not set it in your Florentine.ai account)
SESSION_IDoptional Session ID for maintaining server-side context across requests
RETURN_TYPESoptional Stringified JSON array of return types for the response
REQUIRED_INPUTSoptional Stringified JSON array of values for required inputs keys

npm (npx) discovery passed

Requires Node.js 18+

Run in a terminal
claude mcp add mcp -e 'FLORENTINE_TOKEN=<FLORENTINE_TOKEN>' -- npx -y --package=@florentine-ai/mcp@0.2.1 florentine --mode static
Add to claude_desktop_config.json
{
  "mcpServers": {
    "mcp": {
      "args": [
        "-y",
        "--package=@florentine-ai/mcp@0.2.1",
        "florentine",
        "--mode",
        "static"
      ],
      "command": "npx",
      "env": {
        "FLORENTINE_TOKEN": "<FLORENTINE_TOKEN>"
      }
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "mcp": {
      "args": [
        "-y",
        "--package=@florentine-ai/mcp@0.2.1",
        "florentine",
        "--mode",
        "static"
      ],
      "command": "npx",
      "env": {
        "FLORENTINE_TOKEN": "<FLORENTINE_TOKEN>"
      }
    }
  }
}
Add to .vscode/mcp.json
{
  "inputs": [
    {
      "description": "FLORENTINE_TOKEN",
      "id": "florentine-token",
      "password": true,
      "type": "promptString"
    }
  ],
  "servers": {
    "mcp": {
      "args": [
        "-y",
        "--package=@florentine-ai/mcp@0.2.1",
        "florentine",
        "--mode",
        "static"
      ],
      "command": "npx",
      "env": {
        "FLORENTINE_TOKEN": "${input:florentine-token}"
      },
      "type": "stdio"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.mcp]
command = "npx"
args = ["-y", "--package=@florentine-ai/mcp@0.2.1", "florentine", "--mode", "static"]
env = { "FLORENTINE_TOKEN" = "<FLORENTINE_TOKEN>" }

For AI agents

  1. Ask the user for: FLORENTINE_TOKEN. Never invent or guess these values; secrets go into the client config, not into chat logs.
  2. Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
  3. Restart or reload the client so it starts the server.
  4. Verify: the server should expose these tools: florentine_list_collections, florentine_ask.
  5. If it fails, check that the required runtime is installed (Node.js 18+) and that the values above are set.

Machine-readable: install.md · manifest.json