About Securities prices MCP server sample
A sample securities-data MCP server built with the C# MCP SDK, intended for developers exploring finance tools. It reads static JSON files and provides queries for current quotes, historical data, and sector performance.
Key features
- 01Get current security prices and volumes
- 02List securities by sector
- 03Query historical data by date range
- 04View sector price moves and average volume
Use cases
- 01Check a security’s current market data
- 02Compare a security with sector performance
MCP support
The server exposes securities information tools to MCP clients, covering current data, historical records, and sector queries.
Configuration
Local server config is the same for every client. Copy it into your client’s MCP config file.
We haven’t collected a package or remote endpoint for this server. Follow the instructions in the project README.
Tools
Local servers expose tools only once running on your machine, and the maintainer has not provided a tool list.
Details
From the project READMESecurities 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
- Clone the repo and open the root directory in VS Code.
- Build the solution with
dotnet build. - Follow the instructions here
to configure Claude for Desktop to load your server; the
mcpServerssection 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:
GetCurrentSecurityInfogets current price, volume, etc. information for the supplied ticker symbol.GetSecuritiesBySectorgets information for all securities in the given sector.GetHistoricalDatagets historical price, volume, etc. information for a ticker symbol between the provided dates.GetSectorPerformancegets 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.
Comments
New to MCP?
From what the protocol is to installing your first server, these answers cover most first questions.
An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.