Back to Home
botextractai icon

ai-mcp-server-client-fastmcp

Verified Safe

by botextractai

Overview

Builds a local MCP server with stock market tools for a LangChain AI agent to fetch financial data.

Installation

Run Command
python mcp_client.py

Environment Variables

  • OPENAI_API_KEY

Security Notes

The server uses `stdio` for local communication, reducing network risks in this example. It relies on the security of `yfinance` and `fastmcp` libraries. `OPENAI_API_KEY` is loaded from `.env` file, which is good practice. No `eval` or direct shell command injection points from unsanitized user input were found. The regex for extracting tool messages is applied to internal `ToolMessage` string representation, not user input directly.

Similar Servers

Stats

Interest Score32
Security Score9
Cost ClassMedium
Avg Tokens4000
Stars2
Forks0
Last Update2026-01-19

Tags

MCPFastMCPLangChainAI AgentYFinance