Stock Analysis MCP Server - Provides various tools for accessing and analyzing stock market data
Project description
Stock Analysis MCP Server
This project is a server built using the FastMCP framework, providing various tools for accessing and analyzing stock market data.
Features
The server exposes the following tools:
- Concept Power Tools (
/stock): Analyzes the strength of stock concept sectors based on fund flow and price change. - Finance Tools (
/finance): Provides access to stock financial core indicators and company information. - Stock F10 Tools (
/f10): Fetches and summarizes Stock F10 information. - Market Emotion Tools (
/market): Retrieves and summarizes A-share market emotion indicators. - Stock Keep Up Tools (
/stockUp): Provides lists of continuous limit-up stocks and limit-up stocks. - Web Search Tools (Tavily) (
/websearch): Provides a web search tool.
Setup and Installation
-
Clone the repository:
git clone <repository_url> cd mcp_stock
-
Create a virtual environment (recommended):
python -m venv venv source venv/bin/activate
-
Install dependencies:
Install the required packages using pip:
pip install -r requirements.txt playwright install
-
Configuration:
Some tools might require API keys or other configuration. Please refer to the
config.pyfile and potentially create a.envfile if necessary (based onos.getenvusage inserver.py).TAVILY_API_KEY= -
Run the server:
You can run the server using the
server.pyscript. The server will listen on the port specified by thePORTenvironment variable, defaulting to 8000.fastmcp run server.py --transport=sse --port=8000 --host=0.0.0.0
To run on a specific port:
fastmcp run server.py --transport=sse --port=8000 --host=0.0.0.0
Usage
Once the server is running, you can interact with the tools via the /mcp prefix followed by the tool's mount path (e.g., /mcp/stock, /mcp/finance). The specific endpoints and expected parameters for each tool can be found by examining the tool definitions within each tool's Python file.
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 iflow_mcp_parsedark_mcp_stock-0.1.0.tar.gz.
File metadata
- Download URL: iflow_mcp_parsedark_mcp_stock-0.1.0.tar.gz
- Upload date:
- Size: 10.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.7.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5faf25784f2f686949b3739797d389574009cc6bc393ff8bb5721a2881d80de1
|
|
| MD5 |
430d6b2631f56c25e515742944649345
|
|
| BLAKE2b-256 |
5348c2606a9b7b7247fd43e61f4021286ff8b0ab7d4abf9137333508a3fe850e
|
File details
Details for the file iflow_mcp_parsedark_mcp_stock-0.1.0-py3-none-any.whl.
File metadata
- Download URL: iflow_mcp_parsedark_mcp_stock-0.1.0-py3-none-any.whl
- Upload date:
- Size: 15.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.7.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e66e7b0e324e790269bf19fd085ef7bdbb3e91f5b8d087bb929c057456895fa1
|
|
| MD5 |
66e7ca421361dcf623b6b58501c80205
|
|
| BLAKE2b-256 |
9ec4429616a0ffff66918457d7fcc4c4b802cde0778e08566841423e9d8bf117
|