This example runs a Python agent that connects to any OpenAI-compatible LLM provider and calls the root MCP weather server.
From the repository root:
python -m venv .venv
source .venv/bin/activate
pip install -r requirements-demo.txt
cp example.env .envEdit .env for your provider:
OPENAI_BASE_URL=http://localhost:1234/v1 # LM Studio, Ollama, vLLM, etc.
OPENAI_API_KEY=not-needed # many local providers accept any value
OPENAI_MODEL= # optional; auto-detects first model if emptyStart your provider and load a model with tool-calling support.
python examples/cli-agent/main.py "Is a trip to Hel, Poland a good idea?"The agent uses the system prompt from prompts/travel_advisor.txt.