MCP ExplorerExplorer

Mcp Sample Financial Tool

@Prayag2003on 10 months ago
1 MIT
FreeCommunity
AI Systems
#mcp#mcp-server
Exploring MCP

Overview

What is Mcp Sample Financial Tool

mcp-sample-financial-tool is an MCP server implementation designed to provide financial data and calculations through various APIs, enabling users to access real-time financial information.

Use cases

Use cases include fetching current stock prices for investment analysis, retrieving cryptocurrency data for trading decisions, calculating compound interest for savings plans, and staying updated with the latest financial news.

How to use

To use mcp-sample-financial-tool, install the necessary dependencies using npm or pnpm, and then run the server with the command ‘npm run dev’. Users can access various financial data through specific API endpoints.

Key features

Key features include real-time stock price data from Alpha Vantage API, cryptocurrency prices and stats via CoinGecko API, forex rates through Exchange Rate API, a compound interest calculator, and the latest financial news from GNews API.

Where to use

mcp-sample-financial-tool can be used in finance-related applications, investment platforms, personal finance management tools, and educational purposes for understanding financial concepts.

Content

Financial Data Provider MCP Server

A Model Context Protocol (MCP) server implementation providing financial data and calculations through various APIs.

Features

  • Stock Price Data: Fetch real-time stock prices using Alpha Vantage API
  • Cryptocurrency Data: Get cryptocurrency prices and stats via CoinGecko API
  • Forex Rates: Access currency exchange rates through Exchange Rate API
  • Compound Interest Calculator: Calculate compound interest with customizable parameters
  • Financial News: Retrieve latest financial news from GNews API

Available Tools

1. getStockPrice

{
	ticker: string;
}

2. getCryptoPrice

{
	symbol: string;
}

3. getForexRate

{
	pair: string;
}

4. calculateCompoundInterest

{
    principal: number,
    rate: number,
    time: number,
    compoundFrequency: number
}

5. getFinancialNews

{
	category: string;
}

Setup

  1. Install dependencies:
npm install
pnpm install
  1. Run the server:
npm run dev

Note

  • The server uses demo API keys for demonstration purposes
  • For production use, replace demo API keys with your own
  • Some APIs may have rate limits in their free tiers

Tools

No tools

Comments

Recommend MCP Servers

View All MCP Servers