QuantPlace MCP服务器
轻量级 模型上下文协议 允许AI代理搜索、检查和预览交易数据集的服务器 QuantPlace 无需离开IDE。
它做什么
AI代理可以调用六种工具——四种公共工具,两种经过身份验证的工具:
| 工具 | 验证 | 描述 |
|---|---|---|
search_datasets | -- | 按标题、类别、标签和价格搜索 |
get_dataset_metadata | -- | 列名、行数、描述、供应商信息 |
get_preview_sample | -- | 50行预览渲染为markdown表 |
get_vendor_profile | -- | 卖家评级、个人简介和活跃房源 |
get_my_purchases | API密钥 | 列出您购买的所有数据集 |
get_download_url | API密钥 | 获取购买数据集的15分钟预签名下载URL |
任何购买都不会自动完成。
公共工具 包装QuantPlace的开放REST端点——不需要帐户。\ 经过身份验证的工具 需要QuantPlace API密钥(在 quantplace.org/mcp → API密钥管理)。
有两种方法可以提供密钥:
- 推荐: 设置
QUANTPLACE_API_KEYIDE配置中的环境变量。这些工具将自动使用它,无需任何论证。 - 每次通话: 通过
api_key="your_key"直接调用工具时。当代理已经在上下文中拥有密钥时很有用。
安装
git clone https://github.com/KuroskeNB/quantplace-mcp
cd quantplace-mcp
pip install -r requirements.txt或与 uv:
uv pip install fastmcp httpxIDE设置
克劳德桌面版
增添 ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) 或 %APPDATA%\Claude\claude_desktop_config.json (Windows):
{
"mcpServers": {
"quantplace": {
"command": "python",
"args": ["/absolute/path/to/server.py"],
"env": {
"QUANTPLACE_API_KEY": "your_key_here"
}
}
}
}光标
增添 .cursor/mcp.json 在项目根目录中,或 ~/.cursor/mcp.json 全球地:
{
"mcpServers": {
"quantplace": {
"command": "python",
"args": ["/absolute/path/to/server.py"],
"env": {
"QUANTPLACE_API_KEY": "your_key_here"
}
}
}
}帆板运动
增添 ~/.codeium/windsurf/mcp_config.json:
{
"mcpServers": {
"quantplace": {
"command": "python",
"args": ["/absolute/path/to/server.py"],
"env": {
"QUANTPLACE_API_KEY": "your_key_here"
}
}
}
}克劳德代码
claude mcp add quantplace -e QUANTPLACE_API_KEY=your_key_here -- python /absolute/path/to/server.py省略 -e QUANTPLACE_API_KEY=... 如果你只需要公共工具。
环境变量
| 变量 | 默认值 | 描述 |
|---|---|---|
QUANTPLACE_API_KEY | *(无)* | 您的QuantPlace API密钥。需要经过身份验证的工具。 |
QUANTPLACE_API_URL | https://api.quantplace.org/api/v1 | 覆盖以指向本地开发服务器。 |
代理工作流示例
发现(无需身份验证)
User: Find a BTC order book dataset under $50
Agent:
1. search_datasets(query="BTC", category="orderbook_l2", max_price=50)
-> Returns list of matching datasets with IDs
2. get_dataset_metadata(dataset_id="")
-> Columns: `timestamp`, `bid_price`, `bid_size`, `ask_price`, `ask_size`
3. get_preview_sample(dataset_id="")
-> Renders full markdown table so the agent can analyze structure
4. get_vendor_profile(vendor_id="")
-> Rating: 4.8/5.0 (23 reviews), member since 2025-11下载购买的数据集(需要API密钥)
User: Download the BTC dataset I bought
Agent (QUANTPLACE_API_KEY set in env):
1. get_my_purchases()
-> Lists purchases with dataset_id, status, escrow dates
2. get_download_url(dataset_id="")
-> Returns presigned URL + curl command (valid 15 min)如果密钥不在环境中,代理可以向用户索取并直接传递:
Agent:
1. get_my_purchases(api_key="")
2. get_download_url(dataset_id="", api_key="")建筑
服务器是QuantPlace的公共REST API的一个薄包装器。它作为本地子进程运行,通过以下方式进行通信 stdio --所有主要IDE客户端使用的标准MCP传输。如果服务器故障或无法访问API,则只有MCP工具调用失败;核心平台完全不受影响。
许可证
麻省理工学院
