MCP server for AletaIndex — financial narrative intelligence for AI agents
Project description
MCP Quickstart
Connect AletaIndex to any MCP-compatible AI agent in under 2 minutes.
Compatible with: Claude Code, Cursor, Windsurf, and any MCP-supporting tool.
Step 1 — Get an API Key
Sign up at aletaindex-narrative.com
Free trial: 10 tickers, 90 days history, 500 credits.
Prerequisites — Install uv
The MCP server runs via uvx, which is part of uv — a fast Python package manager. If you don't have it yet:
curl -LsSf https://astral.sh/uv/install.sh | sh
Then restart your terminal. uvx will be available automatically. No other setup needed.
Step 2 — Add to Your Agent Config
Claude Code
Add to ~/.claude/settings.json:
{
"mcpServers": {
"aletaindex": {
"command": "uvx",
"args": ["narrative-intelligence-mcp"],
"env": {
"NARRATIVE_API_KEY": "nk_your_key_here"
}
}
}
}
Restart Claude Code. Done.
Cursor / Windsurf
Add to your MCP config file:
{
"mcpServers": {
"aletaindex": {
"command": "uvx",
"args": ["narrative-intelligence-mcp"],
"env": {
"NARRATIVE_API_KEY": "nk_your_key_here"
}
}
}
}
Step 3 — Start Asking
No setup prompts needed. Just ask naturally:
What narratives are driving NVDA this week?
Has TSLA sentiment shifted in the last 3 days?
Analyze narrative risk across my portfolio: NVDA 30%, AAPL 25%, TSLA 20%, MSFT 25%
The agent automatically calls the right tools and formats the response.
Available Tools
| Tool | Description |
|---|---|
get_narratives |
Full narrative hierarchy for one or more tickers: global narratives, daily topic clusters, articles, and sentiment scores |
get_portfolio_risk |
Macro risk theme analysis across a portfolio — identifies which narratives create concentrated exposure across multiple holdings |
Example Agent Session
You: What's the narrative situation for NVDA right now?
Agent: [calls get_narratives(tickers="NVDA", from_date="2026-05-03", to_date="2026-05-10")]
NVDA — Last 7 Days
Active Narratives (5):
1. AI Infrastructure Supercycle — +0.68 sentiment, 47 articles, ESCALATING
2. Export Control Headwinds — -0.41 sentiment, 23 articles, stable
3. Data Center Capex Cycle — +0.55 sentiment, 18 articles, new spike May 7
4. Blackwell GPU Supply Chain — +0.31 sentiment, 12 articles, stable
5. China Market Access — -0.22 sentiment, 8 articles, declining
Sentiment on "Export Control Headwinds" improved +0.12 over the week,
suggesting the market is discounting near-term regulatory risk.
Manual Installation (alternative to uvx)
pip install narrative-intelligence-mcp
Then use narrative-intelligence-mcp as the command instead of uvx narrative-intelligence-mcp.
Troubleshooting
"NARRATIVE_API_KEY is not set" — Add your API key to the env section of your MCP config.
"Rate limit exceeded" — You've used all your credits. Upgrade at aletaindex-narrative.com/subscription.
"Access denied: Ticker X requires Plus tier" — This ticker is not included in the free tier. Upgrade at aletaindex-narrative.com/subscription. Free tickers: TSLA, NVDA, AAPL, MSFT, AMZN, GOOGL, META, AMD, NFLX, JPM.
Prefer REST API?
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file narrative_intelligence_mcp-0.1.1.tar.gz.
File metadata
- Download URL: narrative_intelligence_mcp-0.1.1.tar.gz
- Upload date:
- Size: 6.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e1c972627b672f700bf4ca580bd36a9b6cebff3c0d99d4039988ca144463df92
|
|
| MD5 |
2cbf6d66ea0ae3a219d0e5166d92692b
|
|
| BLAKE2b-256 |
804bb9028def0c58db5c8d5c4065632a833ee1e616cdeca745ae3aa4fa7f519b
|
File details
Details for the file narrative_intelligence_mcp-0.1.1-py3-none-any.whl.
File metadata
- Download URL: narrative_intelligence_mcp-0.1.1-py3-none-any.whl
- Upload date:
- Size: 5.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
baedc9c6b33a381e01b41446f5dcf3bb9dc455c44a10fc2b1ed45986ee9bfdae
|
|
| MD5 |
00220957625f698e6b2c0a64312ab727
|
|
| BLAKE2b-256 |
f0dcb2262b93fe8042650c3724007d2f3a469067b9b698cd4f74bc86cd69f5c5
|