WM

wshobson/maverick-mcp

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

717 stars 169 forks 质量 89 趋势 43MIT

MaverickMCP - 个人股票分析MCP服务器

概览

是一款个人使用的FastMCP 2.0服务器,直接为您的Claude桌面界面提供专业级的金融数据分析、技术指标和投资组合优化工具。专为个人交易者和投资者打造,提供全面的股票分析功能,无需认证或计费复杂性。 服务器预先播入了全部520只标普500股票,并提供多种策略的高级筛选建议。它本地运行,支持HTTP/SSE/STDIO传输选项,实现与Claude Desktop及其他MCP客户端的无缝集成。 自架MaverickMCP意味着TA-Lib、Tiingo API密钥、Redis和MCP客户端配置。如果你只想要分析,Capital Companion是基于同一引擎构建的托管产品:AI技术分析、带结果追踪的交易计划复审表和价格提醒。 自建操作说明如下。

概述(AI 翻译)

MaverickMCP 是一个开源的股票市场 MCP 服务器,用于股票分析, 作品集跟踪和Python回测。它连接了一个AI助手 通过yfinance获取雅虎财经数据,核心工具无需API密钥。 服务器运行在你的电脑上,存储你的作品集、关注列表和 本地数据库中的行业期刊。

MCP代表Model Context Protocol,是允许AI助手调用的标准 外部工具。使用MaverickMCP配合Claude Desktop、Codex等客户端, 光标和VS Code。可选软件包增加了回测和财务研究 带有语言模型和网页搜索。

MaverickMCP用于教育和信息用途。它不下单 或提供财务建议。市场数据可能延迟、不完整或错误。

特色

区域 你能做什么
市场数据与技术分析 获取报价、历史价格、基本面、相对强弱指数(RSI)、MACD以及观察到的支撑和阻力位。
股票筛选 对已加载的符号进行看涨、看跌和供需筛选。

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

MaverickMCP: stock market MCP server for local analysis

MaverickMCP is an open-source stock market MCP server for stock analysis, portfolio tracking, and Python backtesting. It connects an AI assistant to Yahoo Finance data through yfinance, with no API key required for core tools. The server runs on your computer and stores your portfolio, watchlists, and trade journal in a local database.

MCP means Model Context Protocol, the standard that lets an AI assistant call external tools. Use MaverickMCP with clients such as Claude Desktop, Codex, Cursor, and VS Code. Optional packages add backtesting and financial research with a language model and web search.

MaverickMCP is for educational and informational use. It does not place orders or provide financial advice. Market data can be delayed, incomplete, or wrong.

Features

Area What you can do
Market data and technical analysis Get quotes, historical prices, fundamentals, RSI, MACD, and observed support and resistance levels.
Stock screening Run bullish, bearish, and supply/demand screens over symbols you have loaded.
Portfolio tracking Record positions, calculate average cost and profit or loss, review risk, manage watchlists, and keep a trade journal.
Optional backtesting and research Test strategies on historical data, compare results, or research companies and sectors with source citations.

The v1.2.1 release has 38 core tools, 12 optional backtesting tools, and 3 optional research tools.

Daily history supports US stock symbols and the exchange suffixes .L, .T, .TO, .AX, .HK, and .DE. Other exchange suffixes return a calendar error for history and tools that depend on it. Quote and fundamentals lookups still use the symbols accepted by Yahoo Finance. See the history coverage and freshness guide.

Quick start

Install Python 3.12 or later and uv. SQLite is included. Redis and PostgreSQL are optional.

Installation

First, clone the repository and install the core tools.

git clone https://github.com/wshobson/maverick-mcp.git
cd maverick-mcp
uv sync
cp .env.example .env

Second, add optional packages if you need backtesting or research.

uv sync --extra backtesting --extra research

Third, connect your MCP client using the command below. Replace the path with the absolute path to your checkout. A client using STDIO starts the server

在 GitHub 查看完整 README

安装

uvx --from "git+https://github.com/wshobson/[email protected]" maverick-mcp --transport stdio
新手?先看 mcpskill.org 教程 →

配置

{ "mcpServers": { "maverick-mcp": { "command": "uv", "args": [ "run", "--directory", "/absolute/path/to/maverick-mcp", "maverick-mcp", "--transport", "stdio" ] } } }