- Home
- MCP servers
- Stock Analysis
Stock Analysis
- python
0
GitHub Stars
python
Language
7 months ago
First Indexed
3 months ago
Catalog Refreshed
Documentation & install
Readme and setup notes from the catalogue, plus a client-ready config you can copy for your MCP host.
Installation
Add the following to your MCP client configuration file.
Configuration
View docs{
"mcpServers": {
"tanayphatak-mcp_finance": {
"command": "mcp",
"args": [
"dev",
"stock_analysis_server.py"
],
"env": {
"ALPHA_VANTAGE_API_KEY": "YOUR_API_KEY"
}
}
}
}You have a Stock Analysis MCP Server that exposes core stock technical analysis tools through the MCP framework. It lets you compute moving averages, RSI, and generate basic trade recommendations for AI assistants, enabling quick, actionable insights on stock data within your automation or chat workflows.
How to use
Use an MCP client to connect to the Stock Analysis MCP Server and run the built-in tools against stock symbols. You can start with a dev environment to test features, then integrate the server with your preferred assistant or desktop UI to get real-time MA, RSI, and buy/sell/hold recommendations.
How to install
Prerequisites you need before installation: Python 3.9 or newer, access to an MCP command-line interface, and an Alpha Vantage API key for market data.
# Step 1: Install the MCP server tooling and dependencies (if required by your environment)
mcp install stock_analysis_server.py --with requests --with pandas --with tabulate
# Step 2: Set your Alpha Vantage API key (create a .env file in the project directory)
ALPHA_VANTAGE_API_KEY=your_api_key_here
```}{
Notes and configuration
Configuration is done through an environment file and runtime commands. Create a .env file and place your API key inside. The server relies on Alpha Vantage for data access.
ALPHA_VANTAGE_API_KEY=your_api_key_here
Available tools
calculate_moving_averages
Compute short and long-term moving averages for a given stock symbol to help identify trend directions.
calculate_rsi
Calculate Relative Strength Index (RSI) for a stock to assess overbought or oversold conditions.
trade_recommendation
Provide basic buy/sell/hold signals based on gathered technical indicators like moving averages and RSI.