Tools + MCP
LangChain
Wrap finance functions as typed tools or load them from an MCP server.
Connect finance tools to LangChain
- 1
Install the platform and required runtime
- 2
Create or choose a read-only finance tool
- 3
Add the configuration in the documented location
- 4
Restart, inspect available tools and run a test prompt
Starter configuration
Tools + MCP
from langchain.tools import tool
@tool
def get_financial_data(symbol: str) -> dict:
"""Return verified financial data for a ticker."""
return fetch_from_source(symbol)
agent = create_agent(model, tools=[get_financial_data])Security rules
Start with read-only tools. Never expose brokerage execution, unrestricted file access or secrets to an untrusted server.