Skip to main content

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

  1. Clone the repository:

    git clone <repository_url>
    cd mcp_stock
    
  2. Create a virtual environment (recommended):

    python -m venv venv
    source venv/bin/activate
    
  3. Install dependencies:

    Install the required packages using pip:

    pip install -r requirements.txt
    playwright install
    
  4. Configuration:

    Some tools might require API keys or other configuration. Please refer to the config.py file and potentially create a .env file if necessary (based on os.getenv usage in server.py).

    TAVILY_API_KEY=
    
  5. Run the server:

    You can run the server using the server.py script. The server will listen on the port specified by the PORT environment 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

iflow_mcp_parsedark_mcp_stock-0.1.0.tar.gz (10.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

iflow_mcp_parsedark_mcp_stock-0.1.0-py3-none-any.whl (15.8 kB view details)

Uploaded Python 3

File details

Details for the file iflow_mcp_parsedark_mcp_stock-0.1.0.tar.gz.

File metadata

File hashes

Hashes for iflow_mcp_parsedark_mcp_stock-0.1.0.tar.gz
Algorithm Hash digest
SHA256 5faf25784f2f686949b3739797d389574009cc6bc393ff8bb5721a2881d80de1
MD5 430d6b2631f56c25e515742944649345
BLAKE2b-256 5348c2606a9b7b7247fd43e61f4021286ff8b0ab7d4abf9137333508a3fe850e

See more details on using hashes here.

File details

Details for the file iflow_mcp_parsedark_mcp_stock-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for iflow_mcp_parsedark_mcp_stock-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e66e7b0e324e790269bf19fd085ef7bdbb3e91f5b8d087bb929c057456895fa1
MD5 66e7ca421361dcf623b6b58501c80205
BLAKE2b-256 9ec4429616a0ffff66918457d7fcc4c4b802cde0778e08566841423e9d8bf117

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page