yfinance-ai 5.0.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- yfinance_ai-5.0.0/.gitignore +4 -0
- yfinance_ai-5.0.0/LICENSE +21 -0
- yfinance_ai-5.0.0/PKG-INFO +72 -0
- yfinance_ai-5.0.0/README.md +52 -0
- yfinance_ai-5.0.0/pyproject.toml +36 -0
- yfinance_ai-5.0.0/server.json +20 -0
- yfinance_ai-5.0.0/yfinance_ai.py +6298 -0
- yfinance_ai-5.0.0/yfinance_ai_mcp.py +91 -0
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 lkcair
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
Metadata-Version: 2.5
|
|
2
|
+
Name: yfinance-ai
|
|
3
|
+
Version: 5.0.0
|
|
4
|
+
Summary: MCP server and AI tool for Yahoo Finance: 68 tools for stocks, crypto, forex, commodities, funds and options
|
|
5
|
+
Project-URL: Repository, https://github.com/lkcair/yfinance-ai-mcp
|
|
6
|
+
Project-URL: Source, https://github.com/lkcair/yfinance-ai
|
|
7
|
+
Author: lkcair
|
|
8
|
+
License-Expression: MIT
|
|
9
|
+
License-File: LICENSE
|
|
10
|
+
Keywords: ai-tools,finance,llm,mcp,stocks,yahoo-finance,yfinance
|
|
11
|
+
Classifier: Programming Language :: Python :: 3
|
|
12
|
+
Classifier: Topic :: Office/Business :: Financial :: Investment
|
|
13
|
+
Requires-Python: >=3.10
|
|
14
|
+
Requires-Dist: mcp>=2.1
|
|
15
|
+
Requires-Dist: pandas>=2.2.0
|
|
16
|
+
Requires-Dist: pydantic>=2.0.0
|
|
17
|
+
Requires-Dist: requests>=2.28.0
|
|
18
|
+
Requires-Dist: yfinance>=1.7.0
|
|
19
|
+
Description-Content-Type: text/markdown
|
|
20
|
+
|
|
21
|
+
# yfinance-ai MCP server
|
|
22
|
+
|
|
23
|
+
<!-- mcp-name: io.github.lkcair/yfinance-ai -->
|
|
24
|
+
|
|
25
|
+
Yahoo Finance for any MCP client in **68 tools**: real-time quotes, history, fundamentals, analyst ratings and estimates, options, holders and insiders, dividends, funds and ETFs, crypto, forex, commodities, market movers, sectors and earnings, IPO and economic calendars. No API key.
|
|
26
|
+
|
|
27
|
+
The tools are [yfinance-ai](https://github.com/lkcair/yfinance-ai), the same file used by thousands on ClawHub and OpenWebUI. This package serves them over MCP.
|
|
28
|
+
|
|
29
|
+
## Install
|
|
30
|
+
|
|
31
|
+
**Claude Code**
|
|
32
|
+
```bash
|
|
33
|
+
claude mcp add yfinance-ai -- uvx yfinance-ai
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
**Claude Desktop, Cursor, VS Code and other clients**
|
|
37
|
+
```json
|
|
38
|
+
{
|
|
39
|
+
"mcpServers": {
|
|
40
|
+
"yfinance-ai": { "command": "uvx", "args": ["yfinance-ai"] }
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
Without [uv](https://docs.astral.sh/uv/): `pip install yfinance-ai` and use `"command": "yfinance-ai"`.
|
|
46
|
+
|
|
47
|
+
## Try
|
|
48
|
+
|
|
49
|
+
- "Compare AAPL, MSFT and GOOGL on valuation"
|
|
50
|
+
- "What are analysts saying about NVIDIA?"
|
|
51
|
+
- "Top gainers today" / "Who reports earnings this week?"
|
|
52
|
+
- "Bitcoin price" / "EUR/USD rate" / "SPY top holdings"
|
|
53
|
+
|
|
54
|
+
Every tool is read-only. Full tool list: [yfinance-ai README](https://github.com/lkcair/yfinance-ai#%EF%B8%8F-available-tools-68).
|
|
55
|
+
|
|
56
|
+
MIT. Data comes from Yahoo Finance through [yfinance](https://github.com/ranaroussi/yfinance) and may be delayed. Not affiliated with Yahoo. For research and education, not investment advice.
|
|
57
|
+
|
|
58
|
+
## How it is built
|
|
59
|
+
|
|
60
|
+
`yfinance_ai.py` is an exact copy of the file in [lkcair/yfinance-ai](https://github.com/lkcair/yfinance-ai/blob/main/yfinance_ai.py), the same file OpenWebUI and ClawHub use. `yfinance_ai_mcp.py` imports it and registers every tool over MCP. The package version is read from the `.py` header.
|
|
61
|
+
|
|
62
|
+
## Release
|
|
63
|
+
|
|
64
|
+
After a new version is on `main` in [lkcair/yfinance-ai](https://github.com/lkcair/yfinance-ai):
|
|
65
|
+
|
|
66
|
+
```bash
|
|
67
|
+
./sync.sh # copy yfinance_ai.py from its repo
|
|
68
|
+
git commit -am "yfinance-ai X.Y.Z" && git push
|
|
69
|
+
git tag vX.Y.Z && git push --tags # publish.yml: PyPI + MCP Registry
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
The workflow refuses to publish if the copy differs from its repo or the tag differs from the `.py` version.
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
# yfinance-ai MCP server
|
|
2
|
+
|
|
3
|
+
<!-- mcp-name: io.github.lkcair/yfinance-ai -->
|
|
4
|
+
|
|
5
|
+
Yahoo Finance for any MCP client in **68 tools**: real-time quotes, history, fundamentals, analyst ratings and estimates, options, holders and insiders, dividends, funds and ETFs, crypto, forex, commodities, market movers, sectors and earnings, IPO and economic calendars. No API key.
|
|
6
|
+
|
|
7
|
+
The tools are [yfinance-ai](https://github.com/lkcair/yfinance-ai), the same file used by thousands on ClawHub and OpenWebUI. This package serves them over MCP.
|
|
8
|
+
|
|
9
|
+
## Install
|
|
10
|
+
|
|
11
|
+
**Claude Code**
|
|
12
|
+
```bash
|
|
13
|
+
claude mcp add yfinance-ai -- uvx yfinance-ai
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
**Claude Desktop, Cursor, VS Code and other clients**
|
|
17
|
+
```json
|
|
18
|
+
{
|
|
19
|
+
"mcpServers": {
|
|
20
|
+
"yfinance-ai": { "command": "uvx", "args": ["yfinance-ai"] }
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
Without [uv](https://docs.astral.sh/uv/): `pip install yfinance-ai` and use `"command": "yfinance-ai"`.
|
|
26
|
+
|
|
27
|
+
## Try
|
|
28
|
+
|
|
29
|
+
- "Compare AAPL, MSFT and GOOGL on valuation"
|
|
30
|
+
- "What are analysts saying about NVIDIA?"
|
|
31
|
+
- "Top gainers today" / "Who reports earnings this week?"
|
|
32
|
+
- "Bitcoin price" / "EUR/USD rate" / "SPY top holdings"
|
|
33
|
+
|
|
34
|
+
Every tool is read-only. Full tool list: [yfinance-ai README](https://github.com/lkcair/yfinance-ai#%EF%B8%8F-available-tools-68).
|
|
35
|
+
|
|
36
|
+
MIT. Data comes from Yahoo Finance through [yfinance](https://github.com/ranaroussi/yfinance) and may be delayed. Not affiliated with Yahoo. For research and education, not investment advice.
|
|
37
|
+
|
|
38
|
+
## How it is built
|
|
39
|
+
|
|
40
|
+
`yfinance_ai.py` is an exact copy of the file in [lkcair/yfinance-ai](https://github.com/lkcair/yfinance-ai/blob/main/yfinance_ai.py), the same file OpenWebUI and ClawHub use. `yfinance_ai_mcp.py` imports it and registers every tool over MCP. The package version is read from the `.py` header.
|
|
41
|
+
|
|
42
|
+
## Release
|
|
43
|
+
|
|
44
|
+
After a new version is on `main` in [lkcair/yfinance-ai](https://github.com/lkcair/yfinance-ai):
|
|
45
|
+
|
|
46
|
+
```bash
|
|
47
|
+
./sync.sh # copy yfinance_ai.py from its repo
|
|
48
|
+
git commit -am "yfinance-ai X.Y.Z" && git push
|
|
49
|
+
git tag vX.Y.Z && git push --tags # publish.yml: PyPI + MCP Registry
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
The workflow refuses to publish if the copy differs from its repo or the tag differs from the `.py` version.
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
[build-system]
|
|
2
|
+
requires = ["hatchling>=1.25"]
|
|
3
|
+
build-backend = "hatchling.build"
|
|
4
|
+
|
|
5
|
+
[project]
|
|
6
|
+
name = "yfinance-ai"
|
|
7
|
+
dynamic = ["version"]
|
|
8
|
+
description = "MCP server and AI tool for Yahoo Finance: 68 tools for stocks, crypto, forex, commodities, funds and options"
|
|
9
|
+
readme = "README.md"
|
|
10
|
+
license = "MIT"
|
|
11
|
+
requires-python = ">=3.10"
|
|
12
|
+
authors = [{ name = "lkcair" }]
|
|
13
|
+
keywords = ["mcp", "yfinance", "yahoo-finance", "stocks", "finance", "llm", "ai-tools"]
|
|
14
|
+
classifiers = [
|
|
15
|
+
"Programming Language :: Python :: 3",
|
|
16
|
+
"Topic :: Office/Business :: Financial :: Investment",
|
|
17
|
+
]
|
|
18
|
+
dependencies = ["yfinance>=1.7.0", "pandas>=2.2.0", "pydantic>=2.0.0", "requests>=2.28.0", "mcp>=2.1"]
|
|
19
|
+
|
|
20
|
+
[project.urls]
|
|
21
|
+
Repository = "https://github.com/lkcair/yfinance-ai-mcp"
|
|
22
|
+
Source = "https://github.com/lkcair/yfinance-ai"
|
|
23
|
+
|
|
24
|
+
[project.scripts]
|
|
25
|
+
yfinance-ai = "yfinance_ai_mcp:main"
|
|
26
|
+
|
|
27
|
+
# yfinance_ai.py is an exact copy of lkcair/yfinance-ai (sync.sh); its header holds the version
|
|
28
|
+
[tool.hatch.version]
|
|
29
|
+
path = "yfinance_ai.py"
|
|
30
|
+
pattern = "^version: (?P<version>\\S+)$"
|
|
31
|
+
|
|
32
|
+
[tool.hatch.build.targets.wheel]
|
|
33
|
+
only-include = ["yfinance_ai.py", "yfinance_ai_mcp.py"]
|
|
34
|
+
|
|
35
|
+
[tool.hatch.build.targets.sdist]
|
|
36
|
+
only-include = ["yfinance_ai.py", "yfinance_ai_mcp.py", "README.md", "LICENSE", "server.json"]
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://static.modelcontextprotocol.io/schemas/2025-12-11/server.schema.json",
|
|
3
|
+
"name": "io.github.lkcair/yfinance-ai",
|
|
4
|
+
"description": "Yahoo Finance in 68 tools: stocks, crypto, forex, commodities, funds, options, analysts, calendars.",
|
|
5
|
+
"repository": {
|
|
6
|
+
"url": "https://github.com/lkcair/yfinance-ai-mcp",
|
|
7
|
+
"source": "github"
|
|
8
|
+
},
|
|
9
|
+
"version": "5.0.0",
|
|
10
|
+
"packages": [
|
|
11
|
+
{
|
|
12
|
+
"registryType": "pypi",
|
|
13
|
+
"identifier": "yfinance-ai",
|
|
14
|
+
"version": "5.0.0",
|
|
15
|
+
"transport": {
|
|
16
|
+
"type": "stdio"
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
]
|
|
20
|
+
}
|