How shrirajasekar/mcptest works
Market Data MCP exposes bounded-window OHLCV search, extrema, and moving-average queries to MCP clients over stdio or HTTP. The server obtains missing date bounds through elicitation, then delegates each query to the file-backed store, which routes to CSV data and uses metadata to prune scans; bounded caches support repeated lookups. The README also documents warehouse generation and adaptive manifest sharding. Source excerpts do not show every query implementation detail, so those documented storage relationships are cited to the README; no tests or benchmark utilities are included.
Main entry points: market_data.py Market data store · server.py MCP server · restructure_storage.py Warehouse generator · GLD.csv Source CSV files
Components 13
MCP interface
- MCP server
src/market_data_mcp/server.py - Date elicitation
src/market_data_mcp/server.py
Query analytics
- OHLCV search
src/market_data_mcp/market_data.py - OHLCV extrema
src/market_data_mcp/market_data.py - Moving average
src/market_data_mcp/market_data.py
File-backed storage
- Market data store
src/market_data_mcp/market_data.py - Manifest routing
src/market_data_mcp/market_data.py - Partition metadata
src/market_data_mcp/market_data.py - CSV partitions
src/market_data_mcp/market_data.py - Bounded caches
src/market_data_mcp/market_data.py
Warehouse preparation
- Warehouse generator
scripts/restructure_storage.py
Other components
- MCP client
- Source CSV files
data/GLD.csv
Connections 16
- MCP client → MCP server: calls tools
README.md - MCP server → Date elicitation: requests bounds
src/market_data_mcp/server.py - MCP server → OHLCV search: delegates search
src/market_data_mcp/server.py - MCP server → OHLCV extrema: delegates extrema
src/market_data_mcp/server.py - MCP server → Moving average: delegates average
src/market_data_mcp/server.py - OHLCV search → Market data store: queries through
README.md - OHLCV extrema → Market data store: queries through
README.md - Moving average → Market data store: queries through
README.md - Market data store → Manifest routing: resolves symbols
src/market_data_mcp/market_data.py - Market data store → Bounded caches: checks and updates
src/market_data_mcp/market_data.py - Manifest routing → Partition metadata: selects partitions
README.md - Market data store → Partition metadata: prunes partitions
README.md - Market data store → CSV partitions: streams rows
README.md - Warehouse generator → Source CSV files: reads source
scripts/restructure_storage.py - Warehouse generator → Partition metadata: writes indexes
scripts/restructure_storage.py - Warehouse generator → CSV partitions: writes partitions
scripts/restructure_storage.py