Configuring LLM providers and MCP clients¶
Configure any of Paladio's 13 optional generative AI providers inside Settings (/config under AI & Swarm Intelligence) and connect external desktop or CLI agents such as Claude Desktop to Paladio's 82-tool Model Context Protocol (MCP) server.
Configuring optional chat LLM providers¶
Generative Large Language Models (LLMs) power only the interactive Plan -> Agent conversational assistant (TripAgentRunner), never deterministic trip generation or semantic embeddings.
- Open Settings (
/config) as an administrator and click AI & LLM Engine. - Choose one of the 13 supported providers:
OpenAI,Anthropic (Claude),Google Gemini,Groq,DeepSeek,Mistral AI,OpenRouter,xAI (Grok),Perplexity,Together AI,Cerebras,Custom OpenAI Compatible / vLLM / LocalAI, orOllama (Local). - Enter your API key (or base URL for
Custom OpenAI/Ollama) and select or type a model identifier. - Click Test Connection (
POST /api/system/llm/test) before saving so Paladio verifies authentication and model availability.
Local Ollama RAM guardrails and unloading
For local Ollama, HardwareService inspects host RAM, CPU cores, and GPU memory to compute safe num_ctx, num_thread, and keep_alive settings automatically. Use Unload Model (POST /api/system/llm/unload) in /config anytime to free VRAM/RAM for Valhalla or large PBF imports.
Connecting external clients over Streamable HTTP (/mcp)¶
FastMCP mounts on the FastAPI gateway at POST/GET /mcp (mount_mcp_app), exposing all 82 tools, 6 resources, and 6 prompts to external MCP-capable applications authenticated with a Bearer JWT token.
- Sign into Paladio or obtain an access token via
POST /api/auth/login. - Point your MCP client to
http://127.0.0.1:8000/mcpwith anAuthorization: Bearer your_jwt_access_token_hereheader. - Keep connections targeting
localhostor127.0.0.1unless configuring an SSH tunnel or reverse proxy update, becauseverify_origin_and_hostrejects untrustedHostandOriginheaders to prevent DNS rebinding attacks.
Connecting Claude Desktop via stdio (python -m app.mcp)¶
For local desktop clients like Claude Desktop that spawn MCP servers over stdio, invoke app.mcp directly inside the api container or your local virtual environment using PALADIO_API_TOKEN.
- Add a shared secret token (
PALADIO_API_TOKEN) to theapiservice environment in.envand restart the container. - Add the Paladio server entry to your
claude_desktop_config.json:
{
"mcpServers": {
"paladio": {
"command": "docker",
"args": [
"compose",
"-f",
"/path/to/paladio/docker-compose.yml",
"exec",
"-T",
"-e",
"PALADIO_API_TOKEN=your_paladio_api_token_here",
"api",
"python",
"-m",
"app.mcp"
]
}
}
}
- Restart Claude Desktop and verify the
paladiotools (get_trip_overview,search_pois,optimize_day,what_if) and prompts (review_my_trip,rainy_day_plan) appear in the connector list.
Safe handling of Tier C tools in external MCP clients
When an external MCP client invokes a Tier C tool without confirmed=true (such as optimize_trip, swap_days, remove_day, fit_to_budget, or delete_ticket), the tool returns a pending ProposalData ID (paladio:proposal:{id}, valid for 600s) describing the proposed impact instead of executing immediately.
See MCP server reference for the complete catalog of 82 tools, 6 resources, and 6 prompts.