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
- Docs / instant key: https://lumify.ai/docs/ai
- MCP guide: https://lumify.ai/docs/guides#mcp
- API reference: https://lumify.ai/docs/reference
License
MIT
Metadata
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)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| llamaindex_lumify-0.1.0.tar.gz | 30.3 kB | Without provenance | Details for llamaindex_lumify-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| llamaindex_lumify-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for llamaindex_lumify-0.1.0-py3-none-any.whl |
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
|
Security for llamaindex-lumify 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.