基于 Model Context Protocol (MCP) 的智能股票数据助手,提供与 AI 助手自然对话获取股票数据的能力。
接入配置
选择客户端,复制配置,再按项目文档补齐环境变量。
claude mcp add smart-finacial --env TUSHARE_TOKEN='<TUSHARE_TOKEN>' -- uvx smart-finacial-mcp~/.codex/config.toml
[mcp_servers.smart-finacial]
command = "uvx"
args = ["smart-finacial-mcp"]
env = { TUSHARE_TOKEN = "<TUSHARE_TOKEN>" }
# codex mcp add smart-finacial --env TUSHARE_TOKEN='<TUSHARE_TOKEN>' -- uvx smart-finacial-mcp~/.cursor/mcp.json
{
"mcpServers": {
"smart-finacial": {
"command": "uvx",
"args": [
"smart-finacial-mcp"
],
"env": {
"TUSHARE_TOKEN": "<TUSHARE_TOKEN>"
}
}
}
}.vscode/mcp.json
{
"servers": {
"smart-finacial": {
"type": "stdio",
"command": "uvx",
"args": [
"smart-finacial-mcp"
],
"env": {
"TUSHARE_TOKEN": "<TUSHARE_TOKEN>"
}
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"smart-finacial": {
"command": "uvx",
"args": [
"smart-finacial-mcp"
],
"env": {
"TUSHARE_TOKEN": "<TUSHARE_TOKEN>"
}
}
}
}claude_desktop_config.json
{
"mcpServers": {
"smart-finacial": {
"command": "uvx",
"args": [
"smart-finacial-mcp"
],
"env": {
"TUSHARE_TOKEN": "<TUSHARE_TOKEN>"
}
}
}
}.trae/mcp.json
{
"mcpServers": {
"smart-finacial": {
"command": "uvx",
"args": [
"smart-finacial-mcp"
],
"env": {
"TUSHARE_TOKEN": "<TUSHARE_TOKEN>"
}
}
}
}需要的环境变量
TUSHARE_TOKEN
把占位值换成你自己的密钥;不要把密钥提交到代码仓库。