Securities prices MCP server sample

by CodeRunRepeat

126 downloads
Not rated
GitHub

About

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

Details

Author
CodeRunRepeat
Downloads
126
Categories
Other

- Provides real-time‑like price and volume data by ticker symbol.
- Lists all securities in a given sector.
- Returns historical price and volume data between specified dates.
- Reports sector‑level price movement and average volume.

Build the solution with dotnet build, then configure Claude for Desktop by adding the server to the mcpServers JSON object, using dotnet run --project <path> as the command. The server exposes four tools that Claude can invoke for financial data.

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.
1. Build the solution with dotnet build.
1. 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 reviews yet — be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.