金融MCP服务器
](https://smithery.ai/server/@Otman404/finance-mcp-server) 模型上下文协议 该服务器允许LLM获得准确和最新的股票/加密货币价格和新闻。
可用工具
get_price_tool:获取股票/加密货币报价机的价格
- 论据: - ticker (string):必填-票务名称或别名(例如,“BTC-USD”、“AAPL”) - period (string):可选-时间段(例如,“1d”、“5d”、“1mo”)。默认为“1d”
get_news_tool:获取股票/加密货币行情的新闻。
- 必需参数: - ticker (string):必填 - count (string):可选-要检索的文章数(默认值:5)
安装
通过Smithery安装
通过以下方式自动为Claude Desktop安装yfinance mcp服务器 史密瑟里:
npx -y @smithery/cli install @Otman404/finance-mcp-server --client claude使用紫外线
在本地安装软件包
uv pip install -e .运行服务器
finance-mcp-server使用docker
# build the container
docker build -t finance-server .
# run the container
docker run -it finance-server配置
Claude Desktop的使用方法
添加以下内容 claude_desktop_config json
uvx
"mcpServers": {
"finance": {
"command": "uvx",
"args": ["finance-mcp-server"]
}
}码头工人
{
"mcpServers": {
"finance": {
"command": "docker",
"args": ["run", "-i", "--rm", "finance-server"]
}
}
}用途 5ire
uvx
{
"key": "finance",
"command": "uvx",
"args": ["finance-mcp-server"]
}码头工人
{
"key": "finance-server",
"command": "docker",
"args": ["run", "-i", "--rm", "finance-server"]
}