Securities prices MCP server sample

Securities prices MCP server sample

By CodeRunRepeat GitHub

Sample MCP server for securities prices, historical information, etc.

mcp securities
Overview

What is MCP Investments Sample?

MCP Investments Sample is a sample server that publishes securities-related information using the Model Context Protocol (MCP). It provides access to current and historical securities prices and other financial data.

How to use MCP Investments Sample?

To use the MCP Investments Sample, clone the repository, build the solution using dotnet build, and configure it with Claude for Desktop to load the server. Follow the instructions provided in the documentation for setup.

Key features of MCP Investments Sample?

  • Get current security information including price and volume.
  • Retrieve information for all securities in a specific sector.
  • Access historical price and volume data for a given ticker symbol.
  • Analyze sector performance based on price movement and average volume.

Use cases of MCP Investments Sample?

  1. Analyzing the current price of a stock compared to its sector performance.
  2. Researching historical price trends for investment decisions.
  3. Gathering sector-wide performance data for market analysis.

FAQ from MCP Investments Sample?

  • What programming language is used for this project?

The project is developed in C#.

  • Is there any license for using this project?

Yes, it is licensed under the MIT license.

  • How can I contribute to this project?

You can contribute by submitting issues or pull requests on the GitHub repository.

Content

Securities prices MCP server sample

This is a sample of an MCP server that publishes securities related information as MCP tools. It is based on the C# MCP SDK samples here.

Running the sample in Claude for Desktop

  1. Clone the repo and open the root directory in VS Code.
  2. Build the solution with dotnet build.
  3. Follow the instructions here to configure Claude for Desktop to load your server; the mcpServers section should contain a snippet like this:
    "securities": {
        "command": "dotnet",
        "args": [
            "run",
            "--project",
            "<path>\\mcp-investments-sample\\mcp-server",
            "--no-build"
        ]
    }

Tools

This sample contains 4 tools:

  • GetCurrentSecurityInfo gets current price, volume, etc. information for the supplied ticker symbol.
  • GetSecuritiesBySector gets information for all securities in the given sector.
  • GetHistoricalData gets historical price, volume, etc. information for a ticker symbol between the provided dates.
  • GetSectorPerformance gets price movement and average volume for a sector.

Using these tools, you can ask Claude questions such as

"How does AAPL's current price compare with sector performance?"

Data is loaded from static json files in the ./api/Data directory.

No tools information available.

This is a basic MCP Server-Client Impl using SSE

mcp server-client
View Details

-

mcp model-context-protocol
View Details

Buttplug.io Model Context Protocol (MCP) Server

mcp buttplug
View Details

MCP web search using perplexity without any API KEYS

mcp puppeteer
View Details

free MCP server hosting using vercel

mcp mantle-network
View Details

MCPHubs is a website that showcases projects related to Anthropic's Model Context Protocol (MCP)

mcp mcp-server
View Details