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

Release files for llamaindex-lumify 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for llamaindex-lumify 0.1.0
File Size Uploaded
llamaindex_lumify-0.1.0.tar.gz 30.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for llamaindex-lumify 0.1.0
File Interpreter ABI Platform
llamaindex_lumify-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 38.9 kB

Release files / llamaindex_lumify-0.1.0.tar.gz

Download URL llamaindex_lumify-0.1.0.tar.gz
Size 30.3 kB
Tags Source
SHA-256 checksum
How to use checksums
b294f2a1e6af92246c830b47199ca3b6c89bb7b04e0517434d8fc96e5f1510ca
BLAKE2b-256 checksum
How to use checksums
d9f905549b38ce2ce99ac06fbd6a412bec3dd9752b9a751f4bef0de00384c069
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.12

Release files / llamaindex_lumify-0.1.0-py3-none-any.whl

Download URL llamaindex_lumify-0.1.0-py3-none-any.whl
Size 8.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
03fa22bd1e780d834ac94b9a2c1fb74e789c8ea46b4f14050814fd9383ca4947
BLAKE2b-256 checksum
How to use checksums
54e7472afd29c80cb10b7527046601040d82170a5095816208fb24c1f168c3f4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.12

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page