MCP: StocksMCPServer

MCP: StocksMCPServer

By Lacri1 GitHub

Configure the MCP server to view company information and stock prices using the Claude

Overview

what is MCP?

MCP is a server configuration tool that allows users to view company information and stock prices using the Claude AI.

how to use MCP?

To use MCP, configure the server by editing the claude_desktop_config.json file with your project directory and run the server using the specified command.

key features of MCP?

  • View real-time company information and stock prices.
  • Easy server configuration through JSON files.
  • Integration with Claude AI for enhanced data retrieval.

use cases of MCP?

  1. Monitoring stock prices for specific companies.
  2. Analyzing company performance through real-time data.
  3. Configuring multiple servers for different data sources.

FAQ from MCP?

  • Can MCP be used for any company?

Yes! MCP can be configured to retrieve data for any publicly traded company.

  • Is there a specific programming language required?

MCP is built using Python, so familiarity with Python is beneficial.

  • How do I configure the server?

You can configure the server by editing the claude_desktop_config.json file with your project directory and running the provided command.

Content

MCP: StocksMCPServer

This project configures the MCP server to view company information and stock prices using Claude.

Configuration

The MCP server is defined in claude_desktop_config.json as follows:

{
  "mcpServers": {
    "StocksMCPServer": {
      "command": "uv",
      "args": [
        "--directory",
        "C:\\Users\\user\\PycharmProjects\\mcp", #your project directory
        "run",
        "--with",
        "mcp",
        "mcp",
        "run",
        "main.py"
      ]
    }
  }
}

Make sure to update the "directory" field to match your project path if it’s different.

Development Mode

You can also try it out interactively using MCP Inspector:

mcp dev main.py
No tools information available.
No content found.