XFINLAB Intelligence
XFINLAB
Financial Intelligence Infrastructure — APIs, SDKs, and an MCP server for developers and AI agents, plus a consumer research platform built on the same backend.
Real market events, FinBERT sentiment, technical/market-structure analysis, SEC/CFTC/FDIC/USDA/CBOE official data, and Monte Carlo stress testing. Every field is traceable to a real computation or an official data source — nothing fabricated or interpolated.
Get a free API key · API docs · llms.txt · Consumer product
Quick start (API)
pip install "git+https://github.com/lnanology/Xfinlab.git#subdirectory=sdk/python"from xfinlab_intelligence import XfinlabClient
client = XfinlabClient(api_key="xfl_...") # free tier, issued instantly
sentiment = client.sentiment("AAPL")
technical = client.technical("AAPL", period="6mo")
fundamentals = client.fundamentals("AAPL")Or JavaScript/Node:
npm install "github:lnanology/Xfinlab#path:sdk/js"const { XfinlabClient } = require('xfinlab-intelligence');
const client = new XfinlabClient('xfl_...');
const sentiment = await client.sentiment('AAPL');19 endpoints total — market events, sentiment, AI debate, technical/market-structure, Monte Carlo stress testing, insider trading, institutional ownership, short interest, SEC XBRL fundamentals, CBOE VIX term structure, FDIC bank health, USDA agriculture, EIA energy, crypto, cross-region market map, and Pro-tier webhooks. Full reference: intelligence-api.html.
Related MCP server: FinClaw
MCP server (for Claude and other AI agents)
Every field this server returns is either a real computation/real official-source value, or null with an explanation — the MCP ecosystem has a lot of servers now, few of them say anything about the actual quality of the data behind the tool calls. This one does, in public: xfinlab.com/trust.html shows every underlying data collector's live/down status in real time.
Already live in production — no setup needed, just point an MCP-compatible client at it:
{
"mcpServers": {
"xfinlab": {
"url": "https://api.xfinlab.com/api/mcp",
"headers": { "X-API-Key": "xfl_..." }
}
}
}Server source: api/mcp_server.py. Tools: get_market_events, get_sentiment, get_technical_analysis, get_intelligence_feed, get_global_market_map. Same auth and free tier as the REST API. Docs: intelligence-api.html#mcp.
SDKs & examples
Python SDK | |
JavaScript/Node SDK | |
Quickstart scripts |
|
OpenAPI spec | |
Postman collection |
Both SDKs are MIT-licensed (sdk/LICENSE) and have zero required dependencies beyond the standard library / native fetch.
Consumer product
The same backend also powers xfinlab.com, a retail investment-research platform:
Module | Path |
Homepage |
|
AI Market Research™ |
|
Chart Research™ |
|
Company Compare™ |
|
Event Intelligence™ |
|
Risk Engine™ |
|
Local development
python3 mock-server.pyThen open http://localhost:8080. The production backend is a separate FastAPI app (backend/main.py, deployed on Railway as api.xfinlab.com); the static site above deploys separately on Vercel as xfinlab.com.
More docs
XFINLAB_ARCHITECTURE.md — full system architecture
PROJECT_ROADMAP.md — roadmap
PROJECT_STYLE_GUIDE.md — UI style guide
DATA-LICENSE-MATRIX.md — upstream data source licensing for every paid endpoint
MCP_MARKETPLACE_SUBMISSION.md — MCP server directory submission copy
This server cannot be deployed
Maintenance
Related MCP Connectors
Real SEC, 13F, insider, congress & macro data your AI agent can cite. Hosted MCP, 24 tools.
Research-only MCP server: your AI as a quant research desk. 90 tools, no trades, no brokers.
The Octagon MCP server provides specialized AI-powered financial research and analysis by integrating with the Octagon Market Intelligence API. It enables users to analyze public market data (SEC filings, earnings transcripts, financial metrics, and stock data for 8000+ companies), private market data (3M+ companies, 500k+ funding rounds, 2M+ M&A/IPO transactions), and conduct deep research including web scraping capabilities. The server also features autonomous research agents that search hundreds of sources and return fully cited reports in approximately one minute.
Your agent needs markets — prices and fundamentals for listed companies, the filings behind them, crypto, and what the prediction markets put the odds at. **What you can ask for** • "Pull this company's income statement, cash flow and balance sheet for the last 8 quarters." • "What did insiders buy or sell, and when?" • "Snapshot prices for these 50 tickers, then the OHLC history for the three that moved." • "What are the current odds on this event across Kalshi and Polymarket?" • "Screen for companies matching these financial criteria." **How to use it** Point any MCP client at https://mcp.aisa.one/finance/mcp and sign in with OAuth — there is no key to create or paste. 49 tools: prices and snapshots, income statements, balance sheets and cash flows, metrics and ratios, earnings and analyst estimates, filings and line-item search, insider trades, macro interest rates, news, a screener; CoinGecko spot prices, market tables, OHLC, per-venue tickers and trending; Kalshi and Polymarket markets and trades; plus EDINET filings for Japan. **Why this rather than the source** Equities, crypto and event markets behind one account, so a cross-asset question is one conversation. **It is also a door to the rest** The same login reaches 26 sources and 580+ operations. Read the number here, then ask the same agent what X is saying about the ticker today — without adding a second server. **What it costs** Finding and inspecting an operation is free. Running one is billed per call at API prices, with no seat and no monthly minimum, and every call takes max_price_usd so an agent cannot overspend by accident. **Where else it reaches** https://mcp.aisa.one/marketpulse/mcp · /crypto-market-data/mcp · /prediction-market-data/mcp · /stock-pulse/mcp for one slice each.
Related MCP Servers
- -licenseNot gradedqualityNot gradedmaintenanceReal-time financial market data MCP server. Stocks, crypto, technicals, sentiment, FDA calendar. No API keys required.-
- AlicenseNot gradedqualityDmaintenanceMCP server that provides AI agents with financial tools including real-time quotes, backtesting, technical analysis, and multi-exchange data via a simple CLI interface.1MIT
- AlicenseNot gradedqualityDmaintenanceAn enhanced MCP server providing comprehensive financial market data endpoints for quantitative trading analysis, including SEC filings, FINRA short volume, earnings, news, and Google Trends. It features meta-tools that consolidate multiple data sources into single efficient calls, optimizing for AI agents with iteration budgets.8MIT
- AlicenseAqualityCmaintenanceComprehensive MCP server for real-time stock, cryptocurrency, options, and fundamental analysis, including SEC filings and insider trading data.2644 npmMIT