
financial agent
Example of prototype using MCP with LangChainJS (cryptcurrency, stock price, news acquisition AI assistant)
Repository Info
About This Server
Example of prototype using MCP with LangChainJS (cryptcurrency, stock price, news acquisition AI assistant)
Model Context Protocol (MCP) - This server can be integrated with AI applications to provide additional context and capabilities, enabling enhanced AI interactions and functionality.
Documentation
Example of prototype using MCP with LangChainJS (cryptcurrency, stock price, news acquisition AI assistant)
日本語
Overview
This project provides access to cryptocurrency, stock market, and financial news data via multiple public APIs, wrapped as MCP (Model Context Protocol) servers. You can interact with these servers through natural language using an local LLM from a terminal-based client.
- The client communicates with an LLM via natural language commands.
- The servers fetch and format data from public APIs and return structured results.
- MCP server connection from LangChain and memory management by LangChain
!MCP Architecture Diagram
Technologies Used
- 🧠 modelcontextprotocol/typescript-sdk: For implementing MCP servers
- 🔗 LangChain MCP Adapter: Integrates MCP tools with LangChainJS
- 📊 LangSmith: For tracing and debugging
- 💻 Ollama (Qwen3:8b): Local LLM runtime environment
Directory Structure
src/
├── main.ts # Entry point
└── mcp/
├──── base-mcp-server.ts # Common MCP server logic
├──── crypto-server.ts # Cryptocurrency MCP (CoinGecko)
├──── news-server.ts # News MCP (NewsAPI)
└──── stock-server.ts # Stock MCP (Alpha Vantage)
Public APIs Used
- CoinGecko API
- News API
- Alpha Vantage API
How to Run
1. Setup
npm install
2. Start Ollama (Local LLM)
Make sure Ollama is installed and start the Qwen3:8b model:
ollama run qwen3:8b
3. Set Environment Variables
Copy .env.example to .env and provide your API keys:
cp .env.example .env
🔑 You need to get your API keys from News API and Alpha Vantage.
4. Start MCP Servers
Launch all MCP servers locally using the launcher script:
npm run start-mcp-servers
5. Start the Client
Start the CLI client and interact with your LLM + MCP stack:
npm run dev
Quick Start
Clone the repository
git clone https://github.com/bellshun/financial-agentInstall dependencies
cd financial-agent
npm installFollow the documentation
Check the repository's README.md file for specific installation and usage instructions.
Repository Details
Recommended MCP Servers
Discord MCP
Enable AI assistants to seamlessly interact with Discord servers, channels, and messages.
Knit MCP
Connect AI agents to 200+ SaaS applications and automate workflows.
Apify MCP Server
Deploy and interact with Apify actors for web scraping and data extraction.
BrowserStack MCP
BrowserStack MCP Server for automated testing across multiple browsers.
Zapier MCP
A Zapier server that provides automation capabilities for various apps.