Skip to main content

llamaindex-lumify

LlamaIndex integration for Lumify — the agent-ready sports intelligence API. Load all Lumify tools (schedules, live scores, odds, public betting splits, and explainable AI bet confidence across 8+ sports) into any LlamaIndex agent in one call.

LlamaIndex already speaks MCP natively via llama-index-tools-mcp (BasicMCPClient + McpToolSpec), so this package is a thin convenience layer: it wires up Lumify's auth headers and turns Lumify's raw 401/402 transport failures into readable tool output instead of a crashed agent run.

Install

pip install llamaindex-lumify
# Agent examples also need:
pip install llama-index

Or install the latest from source:

pip install "git+https://github.com/lumifyai/lumify.git#subdirectory=clients/llamaindex-lumify"

Get a key

Grab a free instant key in seconds — no signup, email, or card at https://lumify.ai/docs/ai (100 credits, 14-day expiry). For a persistent account with 1,000 starter credits, use https://lumify.ai/api-keys.

Set it as LUMIFY_API_KEY, or pass it explicitly. get_lumify_tools requires a key by default so the first tool call does not fail with an opaque 401. Pass require_api_key=False only if you want to introspect the public tools/list catalog. Raw lmfy-... values and Bearer lmfy-... copy-pastes are both accepted.

Quick start

import asyncio
from llamaindex_lumify import get_lumify_tools
from llama_index.core.agent.workflow import FunctionAgent
from llama_index.llms.openai import OpenAI


async def main():
    tools = await get_lumify_tools()  # reads LUMIFY_API_KEY
    agent = FunctionAgent(tools=tools, llm=OpenAI(model="gpt-4.1"))
    result = await agent.run("What's the best MLB bet today, with the rationale?")
    print(result)


asyncio.run(main())

Pass a key explicitly or point at a self-hosted endpoint:

tools = await get_lumify_tools(api_key="lmfy-...", url="https://lumify.ai/mcp")

Tool spec

from llamaindex_lumify import LumifyToolSpec

tool_spec = LumifyToolSpec()          # sync init; reads LUMIFY_API_KEY
tools = await tool_spec.to_tool_list_async()
agent = FunctionAgent(tools=tools, llm=OpenAI(model="gpt-4.1"))

LumifyToolSpec is a McpToolSpec subclass, so allowed_tools, global_partial_params, partial_params_by_tool, and include_resources all work as documented in llama-index-tools-mcp.

Tools

Loads the full Lumify MCP tool surface (18 tools): list_sports, list_seasons, list_events, get_event, batch_get_events, query_events, get_live_score, get_odds, get_odds_history, get_stats, get_splits, get_intelligence, list_teams, get_team, search_players, get_player, get_player_events, and estimate_cost (free pre-call credit-cost estimate).

Links

License

MIT

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

llamaindex_lumify-0.1.0.tar.gz (30.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

llamaindex_lumify-0.1.0-py3-none-any.whl (8.6 kB view details)

Uploaded Python 3

File details

Details for the file llamaindex_lumify-0.1.0.tar.gz.

File metadata

  • Download URL: llamaindex_lumify-0.1.0.tar.gz
  • Upload date:
  • Size: 30.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.13.12

File hashes

Hashes for llamaindex_lumify-0.1.0.tar.gz
Algorithm Hash digest
SHA256 b294f2a1e6af92246c830b47199ca3b6c89bb7b04e0517434d8fc96e5f1510ca
MD5 41381e09b492fc28d7f430c7c3f35466
BLAKE2b-256 d9f905549b38ce2ce99ac06fbd6a412bec3dd9752b9a751f4bef0de00384c069

See more details on using hashes here.

File details

Details for the file llamaindex_lumify-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for llamaindex_lumify-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 03fa22bd1e780d834ac94b9a2c1fb74e789c8ea46b4f14050814fd9383ca4947
MD5 40c5c5d9a481091eb985cacea0cb8329
BLAKE2b-256 54e7472afd29c80cb10b7527046601040d82170a5095816208fb24c1f168c3f4

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page