Time Series Quant Finance MCP Server
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Time Series Quant Finance MCP ServerCalculate RSI, MACD, and Bollinger Bands for AAPL"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Time Series Quant Finance MCP Server
An MCP (Model Context Protocol) server built using FastMCP that calculates technical analysis indicators for financial stock tickers using yfinance and pandas-ta.
This server provides LLMs with access to real-time financial market data and quantitative analysis tools, enabling them to analyze stock trends, momentum, volatility, and key moving averages.
Features
Automatic Baseline Trends: Always includes 50-day Simple Moving Average (SMA) and 200-day SMA to establish baseline trends.
Multiple Technical Indicators: Support for:
RSI (Relative Strength Index)
MACD (Moving Average Convergence Divergence)
BBANDS (Bollinger Bands)
ATR (Average True Range)
SMA (Simple Moving Average with custom lengths)
EMA (Exponential Moving Average with custom lengths)
Robust Multi-index Handling: Programmatically flattens
yfinancemulti-level indices to prevent Pandas crashes.JSON Output: Returns the last 5 trading days of historical and calculated data, cleaned and formatted for easy consumption by an LLM.
Related MCP server: trade-mcp
Installation & Setup
Prerequisites
Python >= 3.12
uv (recommended package manager) or standard
pip
1. Clone & Install Dependencies
Using uv (recommended):
# Install dependencies using uv
uv syncOr using standard pip and virtual environments:
# Create and activate a virtual environment
python3 -m venv .venv
source .venv/bin/activate
# Install dependencies
pip install -r requirements.txtRunning and Debugging
Running via FastMCP Dev Inspector
FastMCP includes a built-in development inspector that lets you interact with and test the server in a web UI.
# Using uv
uv run fastmcp dev server.py
# Or using standard python
python server.py devAlternatively, you can use the official MCP Inspector:
npx -y @modelcontextprotocol/inspector uv run server.pyMCP Configuration
To integrate this server with client applications like Claude Desktop, add the configuration to your MCP settings file (typically ~/Library/Application Support/Claude/claude_desktop_config.json on macOS or %APPDATA%\Claude\claude_desktop_config.json on Windows).
Configuration using uv (Recommended)
{
"mcpServers": {
"finance-server": {
"command": "uv",
"args": [
"run",
"--directory",
"/absolute/path/to/mcp-finance-server",
"server.py"
]
}
}
}Configuration using Virtual Environment Python
{
"mcpServers": {
"finance-server": {
"command": "/absolute/path/to/mcp-finance-server/.venv/bin/python",
"args": [
"/absolute/path/to/mcp-finance-server/server.py"
]
}
}
}Make sure to replace /absolute/path/to/mcp-finance-server with the actual path to the repository on your system.
Tools Reference
calculate_technical_indicators
Fetches daily historical stock data for the last year and calculates requested technical indicators.
Parameters
Parameter | Type | Required | Default | Description |
|
| Yes | - | Stock ticker symbol (e.g. |
|
| Yes | - | List of indicators to calculate. Supported values: |
|
| No |
| Period length for RSI calculation. |
|
| No |
| Fast period for MACD. |
|
| No |
| Slow period for MACD. |
|
| No |
| Signal period for MACD. |
|
| No |
| Period length for Bollinger Bands. |
|
| No |
| Standard deviation multiplier for Bollinger Bands. |
|
| No |
| Period length for ATR. |
|
| No |
| List of custom SMA lengths to calculate (excluding baseline 50 and 200). |
|
| No |
| List of custom EMA lengths to calculate. |
Return Value
Returns a JSON-formatted string mapping date strings to indicator values for the last 5 trading days.
Example return structure (shortened for readability):
{
"2026-07-07": {
"Open": 182.5,
"High": 184.2,
"Low": 181.8,
"Close": 183.9,
"Volume": 54200000,
"Baseline_SMA_50": 178.4,
"Primary_Trend_SMA_200": 170.2,
"RSI_14": 62.4
},
"2026-07-08": { ... },
"2026-07-09": { ... },
"2026-07-10": { ... },
"2026-07-11": { ... }
}This server cannot be deployed
Maintenance
Related MCP Connectors
MCP server exposing the Backtest360 engine API as tools for AI agents.
MCP server for OpenMM — exposes market data, account, trading, and strategy tools to AI agents
A Model Context Protocol server exposing real-time and historical Colombo Stock Exchange (CSE) data to AI agents and LLM applications. Provides quotes and OHLCV price history, full financial statements (income, balance sheet, cash flow), pre-computed technicals (moving averages, RS ratings, volume signals), macroeconomic indicators, corporate actions, and rule-based screening across CSE stocks and sector indices, everything needed to build CSE-aware trading assistants, research tools, and market-analysis agents. This is the official MCP server of www.ceyloncharts.com
Research-only MCP server: your AI as a quant research desk. 90 tools, no trades, no brokers.
Related MCP Servers
- AlicenseAqualityCmaintenanceAn MCP server that exposes comprehensive Yahoo Finance data (quotes, financials, options, news, and more) to AI agents via the yfinance library, requiring no API key.24MIT
- FlicenseAqualityCmaintenanceAn advanced MCP server for real-time worldwide stock market data, technical indicators, financials, news, and Python sandboxing with AI models, supporting US and Indian markets.291-
- FlicenseNot gradedqualityDmaintenanceA production-grade MCP server that provides tools to fetch historical stock data, company information, and technical indicators (SMA, EMA, RSI, MACD, Bollinger Bands) via yfinance, and includes a Flask web dashboard for visual analysis.-
- FlicenseNot gradedqualityCmaintenanceMCP server wrapping yfinance to provide stock market data, financials, and analytics via 24 tools.-