Skip to main content
All configuration is done via environment variables, typically set in the env block of your MCP config.

Variables

VariableRequiredDefaultDescription
LEEROOPEDIA_API_KEYYesYour Leeroopedia API key
LEEROOPEDIA_API_URLNohttps://api.leeroopedia.comAPI endpoint URL
LEEROOPEDIA_POLL_MAX_WAITNo300Max seconds to wait for a search task
LEEROOPEDIA_POLL_INTERVALNo0.5Initial poll interval in seconds

API Key

Get your API key at app.leeroopedia.com:
  1. Create an account or log in
  2. Navigate to Dashboard > API Keys
  3. Copy your key (format: kpsk_…)

Poll Settings

The MCP client uses an async task pattern with exponential backoff:
  • LEEROOPEDIA_POLL_MAX_WAIT — Increase if searches frequently time out
  • LEEROOPEDIA_POLL_INTERVAL — The initial poll interval. Grows by 1.5x, capped at 5s
Setting LEEROOPEDIA_POLL_MAX_WAIT too low may cause timeouts on complex queries. The default of 300 seconds works well for most use cases.

Custom API URL

For self-hosted or staging environments, override the API URL by setting LEEROOPEDIA_API_URL in your MCP config env block.