Tradewink

io.github.leancoderkavy由 GitHub 账号 leancoderkavy 发布v0.3.0更新于 Oct 28, 2026

MCP for Tradewink trading signals and watchlists. Not financial advice.

已验证Streamable HTTP可网页运行金融数据与分析

概览

AI 生成的概览

Tradewink MCP 让助手访问 Tradewink 的交易信号、行情数据、自选列表、投资组合与下单工具。

可以做什么
  • 读取账户、持仓与实时投资组合数据
  • 管理自选列表:查看、添加与移除标的
  • 获取行情:报价、批量报价、历史数据、新闻、分析师评级、财报与技术分析
  • 筛选市场异动与筛选器结果
  • 下单、平仓、查看未成交订单与撤单
  • 查看策略、交易历史、分析统计、成交记录与审计日志
适用场景
适合希望助手在聊天客户端中做市场研究、查看 Tradewink 投资组合、管理自选列表或依据 Tradewink 信号行动的场景。README 也描述了与独立券商服务器搭配用于执行交易的用法。
运行要求
需要 Tradewink 账户与授权:首次运行通过 OAuth 2.1 浏览器授权,或在 TRADEWINK_API_KEY 中提供手动 API 密钥。README 中的本地包通过 npx(Node.js)以 stdio 运行并代理到远程端点;清单列出需要 Authorization bearer 令牌的远程 streamable HTTP 端点。可用 TRADEWINK_ENDPOINT 或 --endpoint 覆盖服务器地址。
安装前请注意
该服务器可下单、平仓与撤销未成交订单,作用于与券商关联的账户,助手可能实际动用资金。OAuth 令牌会缓存在本地磁盘并可自动刷新 60 天;手动 API 密钥提供长期访问权限。README 说明信号仅供参考,可能不完整、延迟或错误,并强调需自行复核每个信号与订单。不构成投资建议。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Tradewink,将其添加到工作区。
  2. 连接 Authorization token 凭据。它们会被私密存储,绝不会在公开页面上展示。
  3. 为需要使用其工具的对话启用该服务。

Web executable,通过 Streamable HTTP。 远程服务在工作区中配置后即可从网页运行时运行。

交给智能体安装

把这段提示词粘贴到 Claude Code、Codex、Cursor 等智能体,或 SourceWeft 对话中。智能体会读取该服务器的安装指南,先向你展示发布者、端点和登录方式,经你同意后再把它添加到你的客户端。密钥不会写进任何命令。

阅读 https://sourceweft.com/mcp/io.github.leancoderkavy%2Ftradewink/install.md,并按其中说明把这个 MCP 服务器接入我的客户端。修改任何配置之前,先告诉我它的发布者、端点和登录方式,等我确认。不要把 API 密钥写进命令或我会提交的文件;问我密钥应从哪里获取。

查看智能体所依据的安装指南

其他 MCP 客户端

把它添加到你客户端的 mcpServers 配置中。

{
  "mcpServers": {
    "tradewink": {
      "type": "http",
      "url": "https://tradewink-mcp.fly.dev/mcp",
      "headers": {
        "Authorization": "Bearer <YOUR_TOKEN>"
      }
    }
  }
}

README

@tradewink/mcp

Connect any LLM to Tradewink signals and analysis via the Model Context Protocol, then pair it with Alpaca for agent-driven execution.

Get real-time quotes, manage your portfolio, execute trades, run AI analysis, and more — all from your AI assistant.

Quick Start

1. Configure Your Client

No API key needed — @tradewink/mcp uses OAuth 2.1. The first time you run it, a browser window opens to authorize your tradewink.com account. Tokens are cached in ~/.tradewink/mcp/ and refresh automatically.

Automatic Setup (Recommended)

Auto-detect and configure all your installed AI clients with one command:

bash
npx @tradewink/mcp setup

This detects and configures: Claude Code, Claude Desktop, VS Code (Copilot), Cursor, Windsurf, and OpenAI Codex CLI.

Manual Setup
Claude Code
bash
claude mcp add tradewink -- npx -y @tradewink/mcp
Claude Desktop

Add to your claude_desktop_config.json:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json
json
{  "mcpServers": {    "tradewink": {      "command": "npx",      "args": ["-y", "@tradewink/mcp"]    }  }}
VS Code (Copilot)

Add to your VS Code settings (.vscode/settings.json or global settings):

json
{  "mcp": {    "servers": {      "tradewink": {        "command": "npx",        "args": ["-y", "@tradewink/mcp"],        "env": {          "TRADEWINK_API_KEY": "tw_your_key_here"        }      }    }  }}
Cursor

Add to .cursor/mcp.json (project) or ~/.cursor/mcp.json (global):

json
{  "mcpServers": {    "tradewink": {      "command": "npx",      "args": ["-y", "@tradewink/mcp"]    }  }}
OpenAI Codex CLI
bash
codex mcp add tradewink -- npx -y @tradewink/mcp
Windsurf

Add to ~/.codeium/windsurf/mcp_config.json:

json
{  "mcpServers": {    "tradewink": {      "command": "npx",      "args": ["-y", "@tradewink/mcp"]    }  }}
Any MCP-Compatible Client

Any client that supports MCP stdio servers works:

bash
npx @tradewink/mcp

2. Start Using It

Ask your AI assistant things like:

  • "What's my account balance?"
  • "Show me my open positions"
  • "Get a quote for AAPL"
  • "What are today's top market movers?"
  • "Analyze NVDA with AI"
  • "Add TSLA to my watchlist"
  • "What are my active trading strategies?"
  • "Show my trade history for the past week"

Tradewink Signals + Alpaca Execution

Use tradewink-mcp as the signal and research layer for your agent, and the official Alpaca MCP server as the execution layer. This keeps Tradewink's market context, screeners, technical analysis, and AI insights separate from the broker tools that place orders.

This is an integration pattern: no Alpaca order-execution code is added to tradewink-mcp.

Add both servers to the same Claude Desktop or Cursor MCP configuration:

json
{  "mcpServers": {    "tradewink": {      "command": "npx",      "args": ["-y", "@tradewink/mcp"]    },    "alpaca": {      "command": "uvx",      "args": ["alpaca-mcp-server"],      "env": {        "ALPACA_API_KEY": "your_paper_api_key",        "ALPACA_SECRET_KEY": "your_paper_secret_key",        "ALPACA_PAPER_TRADE": "true"      }    }  }}

The official Alpaca server uses uvx and defaults to paper trading; the explicit ALPACA_PAPER_TRADE setting above makes the safety boundary visible. Create paper keys in Alpaca's dashboard and keep credentials in your local MCP client configuration. See the Alpaca MCP setup and configuration docs.

Example agent workflow

Ask the agent to:

  1. Get a Tradewink signal, such as market movers plus get_technical_analysis or analyze_ticker for AAPL.
  2. Check the current quote and paper-account buying power, define a maximum loss/risk budget, and size the position from that budget rather than blindly copying a signal.
  3. If the thesis and sizing pass review, place a paper order with Alpaca's place_stock_order, then report the order details and risk controls.

For example: “Use Tradewink to find a bullish AAPL setup, explain the signal and invalidation level, size it to no more than 1% of my paper account, and—only after I confirm—place the corresponding paper order through Alpaca.”

Tradewink signals are informational and may be incomplete, delayed, or wrong. Trading involves substantial risk, including loss of principal; an agent can misunderstand data or instructions. Review every signal, size, and order yourself, and do not switch ALPACA_PAPER_TRADE to false until you understand and accept the risks.

Available Tools

CategoryTools
Accountget_account, get_positions, get_portfolio_live
Watchlistget_watchlist, add_to_watchlist, remove_from_watchlist
Market Dataget_quote, batch_quote, get_historical, get_news, get_analyst_ratings, get_earnings, get_technical_analysis
Screenerget_market_movers, get_screener_results
Tradingplace_order, close_position, get_open_orders, cancel_order
Strategiesget_strategies, get_strategy, get_exit_strategies, get_sell_confidence
Trade Historyget_trades, get_trade_analytics, get_trade_executions, get_audit_log
AI Analysisask_ai, analyze_ticker, get_insights
Preferencesget_preferences, list_preference_options, update_preference, reset_preference
Schedulingschedule_analysis, list_scheduled_jobs, cancel_scheduled_job

Configuration

Environment VariableRequiredDefaultDescription
TRADEWINK_API_KEYNo—Skip the OAuth flow and use a manual API key (tw_...). Useful for headless CI.
TRADEWINK_ENDPOINTNohttps://tradewink-mcp.fly.dev/mcpCustom MCP server endpoint

You can also pass --endpoint as a CLI argument:

bash
npx @tradewink/mcp --endpoint https://custom.example.com/mcp

Auth

OAuth 2.1 is the default. On first run a browser window opens to tradewink.com/mcp/authorize, you approve the request, and the bridge caches an access + refresh token pair at ~/.tradewink/mcp/<host>.json. Access tokens live for 1 hour and refresh automatically for 60 days. You can revoke access anytime from your dashboard.

Set TRADEWINK_API_KEY=tw_... to skip OAuth and use a manual key (e.g. for CI, sandboxes, or pinned long-lived access).

How It Works

This package runs a local MCP server over stdio and proxies every tool/resource call to the remote Tradewink MCP server over HTTPS. OAuth tokens are minted per-device and scoped to your account.

Your LLM Client ←stdio→ @tradewink/mcp ←HTTPS (Bearer token)→ Tradewink MCP Server

License

MIT

来源:README.md,提交 3cf1420

工具

0
SourceWeft 尚未读取此服务器的工具。

版本历史

1
  1. v0.3.0最新Sep 24, 2026

评分

已满足适用检查项的 85%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通必需25 分
  • 已声明认证方式必需10 分
  • 已列出工具必需15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分