Skip to main content
Glama
Vantage Movers MCP

Vantage Movers MCP

Vantage Movers MCP

远程 Model Context Protocol 服务器,让智能体能够在一个地方使用 Granot / Vantage 后端并查询 MongoDB Atlas。

托管在 Vercel 上,使用 mcp-handler v2 和 Next.js。这是当前 Vercel 支持的方案:Streamable HTTP 加上 2026-07-28 版的 MCP 规范,无需 Redis,也不需要常驻的 stdio 进程。

为什么选择这个库

选项

结论

mcp-handler v2 + Next.js

已选用。官方 Vercel 适配器,支持 Fluid compute 和 Zod 4 工具 schema,并可作为 URL 在 Cursor 中使用。

xmcp

一个不错的基于文件的替代方案。对于小型工具集来说,多了一层框架。

官方 MongoDB MCP stdio 服务器

本地表现出色,但无法在 Vercel Functions 上启动。作为替代,本服务器使用官方 mongodb 驱动实现了相同的只读工具。

Related MCP server: MongoDB MCP Server

必需的 MCP 配置

VANTAGE_API_SECRET 在客户端配置中是必需的。服务器在调用 https://vantage-movers-main-server.vercel.app 时,会将该值放入 x-api-secret 请求头。

Cursor / Claude 风格的 Streamable HTTP:

{
  "mcpServers": {
    "vantage-movers": {
      "url": "https://vantage-movers-mcp.vercel.app/api/mcp",
      "headers": {
        "Authorization": "Bearer <VANTAGE_API_SECRET>"
      }
    }
  }
}

如果客户端更倾向于使用 Vantage 的请求头名称,x-api-secret 也同样会被接受:

{
  "mcpServers": {
    "vantage-movers": {
      "url": "https://vantage-movers-mcp.vercel.app/api/mcp",
      "headers": {
        "x-api-secret": "<VANTAGE_API_SECRET>"
      }
    }
  }
}

对于远程 URL,不要把密钥放在 env 中。HTTP MCP 客户端只会发送 headers。env 是给本地 stdio 服务器使用的。

生产环境还会在 Vercel 项目上存储 VANTAGE_API_SECRET,因此公共 URL 无法用伪造的 token 访问 Mongo。客户端配置的值必须与之匹配。

MongoDB

官方 MongoDB MCP 服务器采用 stdio 方式运行。本部署在进程内保留了一个专用的 Mongo 接口:

  • mongo_list_databases

  • mongo_list_collections

  • mongo_collection_schema

  • mongo_collection_indexes

  • mongo_find

  • mongo_aggregate

  • mongo_count

  • mongo_db_stats

只读。$out 和 $merge 会被拒绝。默认数据库为 vantagemovers(当 TEST_MODE=true 时为 testvantagemovers)。

对 Form / Call Lead 的写入,请使用 lead 工具。对 Mongo 的原始写操作会跳过 Sheet Sync 和 CRM 提交。

首批工具

工具

后端

search_leads

POST /api/v1/{form,call}-leads/search

list_leads

GET /api/v1/{form,call}-leads

get_lead

GET /api/v1/{form,call}-leads/:id

create_lead

POST /api/v1/{form,call}-leads

update_lead

PATCH /api/v1/{form,call}-leads/:id

delete_lead

DELETE /api/v1/{form,call}-leads/:id

vantage_health

GET /health, GET /db

后续批次:Granot 同步、Owner Registry 条目、预订用例。

本地

pnpm install
cp .env.example .env.local
# fill VANTAGE_API_SECRET and MONGO_URI
pnpm test
pnpm typecheck
pnpm dev

本地 MCP URL:http://localhost:3100/api/mcp

环境

名称

位置

作用

VANTAGE_API_SECRET

Vercel + MCP 客户端请求头

用于对本服务器和 Vantage API 进行身份验证

VANTAGE_API_BASE_URL

Vercel,可选

默认使用生产环境

MONGO_URI

仅 Vercel

用于 Mongo 工具的 Atlas 连接

MONGO_DATABASE_NAME

Vercel,可选

覆盖默认数据库名称

TEST_MODE

可选

将默认数据库切换为 testvantagemovers

Related MCP Connectors

Related MCP Servers

  • F
    license
    Not graded
    quality
    D
    maintenance
    Enables AI agents to query MongoDB databases and project management REST APIs through a universal MCP interface, providing read-time access to workspace data.
    -
  • A
    license
    Not graded
    quality
    D
    maintenance
    Enables AI agents to securely connect to MongoDB databases via MCP, with deployment modes from basic to RBAC-gated with Keycloak authentication.
    26 npm
    2
    MIT
  • A
    license
    Not graded
    quality
    D
    maintenance
    A secure, read-only MCP server that enables AI agents to connect to MongoDB, perform queries and aggregations, and manage connections.
    8 npm
    MIT
  • A
    license
    Not graded
    quality
    B
    maintenance
    Provides fail-closed, read-only PostgreSQL and MongoDB access for AI agents via MCP, enabling structured data inspection and bounded queries without mutation capabilities.
    MIT