stockprice-mcp
Stock price & FX rate MCP server for Claude Desktop, powered by yfinance. No API key required.
Note: An unrelated package named
yfinance-mcpexists on PyPI — it is not affiliated with this project. This project is published asstockprice-mcp.
Setup (Claude Desktop)
uvx stockprice-mcp serve
Add to claude_desktop_config.json:
{
"mcpServers": {
"stockprice": {
"command": "uvx",
"args": ["stockprice-mcp", "serve"]
}
}
}
Tools
| Tool | Description |
|---|---|
get_stock_price |
Latest price + fundamentals for TSE-listed stocks (code.T) |
get_stock_history |
OHLCV history for a date range |
get_fx_rates |
JPY FX rates (USDJPY, EURJPY, GBPJPY, CNYJPY) |
search_ticker |
Search ticker by company name or keyword |
Usage in Claude Desktop
stockprice でトヨタ(7203)の最新株価を教えて
stockprice で USDJPY の直近1週間の推移を確認して
stockprice でソニーのティッカーを検索して
CLI
pip install stockprice-mcp
yfinance-mcp price 7203 # 最新株価
yfinance-mcp history 7203 --start 2025-01-01 # 価格履歴
yfinance-mcp fx # FXレート
yfinance-mcp search Toyota # ティッカー検索
yfinance-mcp test # 疎通確認
yfinance-mcp serve # MCPサーバー起動
Python
import asyncio
from yfinance_mcp import YfinanceClient
async def main():
client = YfinanceClient()
price = await client.get_stock_price("7203")
print(price.close, price.trailing_pe)
asyncio.run(main())
Disclaimer
This package uses yfinance (Apache 2.0). Data is intended for personal, educational, and research use.
License
Apache-2.0
Metadata
Release files for stockprice-mcp 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| stockprice_mcp-0.2.0.tar.gz | 16.1 kB | Without provenance | Details for stockprice_mcp-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| stockprice_mcp-0.2.0-py3-none-any.whl | Python 3 | none | any | Details for stockprice_mcp-0.2.0-py3-none-any.whl |
Total release size: 26.6 kB
Release files / stockprice_mcp-0.2.0.tar.gz
| Download URL | stockprice_mcp-0.2.0.tar.gz |
|---|---|
| Size | 16.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7eed6741dafea54568bc56bab0e45a53112201aaaa8cd7dd5c14e28cbc751c0e
|
|
BLAKE2b-256 checksum How to use checksums |
2a47ec1ac65b51bf159304a93fafb022ed473f667f8865331c22c52f5477d2ce
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.10.0 {"installer":{"name":"uv","version":"0.10.0","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Release files / stockprice_mcp-0.2.0-py3-none-any.whl
| Download URL | stockprice_mcp-0.2.0-py3-none-any.whl |
|---|---|
| Size | 10.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c6adb6496d1d78f11065cdf20eeebd9b8ea7fc0cd636befea3328418362b410c
|
|
BLAKE2b-256 checksum How to use checksums |
866ebaa7c74e71c16be676b803fab443c1f76f31cee86c00b5512648ddf8e64d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.10.0 {"installer":{"name":"uv","version":"0.10.0","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Security for stockprice-mcp 0.2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.