World Bank Procurement MCP Server

World Bank Procurement MCP Server

Enables searching and fetching World Bank procurement notices using the public API. Supports filtering by country, sector, and notice type, and retrieving full details by ID.

Category
访问服务器

README

worldbank-procurement-mcp

A remote MCP (Model Context Protocol) server exposing the World Bank's free Procurement Notices API (search.worldbank.org/api/v2/procnotices) as tools an AI agent can call. No API key needed on the World Bank side.

What was broken in the previous version, and the fix

The first deploy returned -32603 Internal server error on every request, failing in ~1ms of CPU time -- too fast to have even reached a fetch call. Root cause, confirmed against @modelcontextprotocol/server's actual changelog:

  1. inputSchema was a bare object ({ name: z.string() }) instead of a full Standard Schema instance (z.object({ name: z.string() })). Cloudflare's own docs example uses the bare-object form, but the SDK's real behavior (per its changelog, PR #1689 "Support Standard Schema for tool and prompt schemas") requires a complete schema object. The bare form throws the moment the tool is registered -- which matches the instant, pre-fetch failure exactly. Fixed: every inputSchema in src/index.ts now uses z.object({...}).
  2. Zod was pinned to v3 (^3.23.8); the SDK requires Zod v4 for Standard Schema support. Fixed: zod is now pinned to ^4.4.3.
  3. Versions were floating or nonexistent. agents was "latest" (drift risk), and @modelcontextprotocol/server@2.0.0 doesn't actually exist as a stable release -- the real latest is the alpha line. Fixed: both are now pinned to exact, verified-published versions: agents@0.17.4, @modelcontextprotocol/server@2.0.0-alpha.2.

Also added: a try/catch around the handler that logs the real JS error to Observability/wrangler tail before responding, and a friendly plain-text response at / instead of a bare 404, so future debugging is faster.

Honesty check: @modelcontextprotocol/server is still an alpha package ("expect breaking changes until v2 stabilizes" per its own README) and Cloudflare's createMcpHandler pattern is only days old. I've verified every version and API detail above against the SDK's real changelog and Cloudflare's current docs, and this should deploy cleanly -- but I can't execute or test it myself (no network access in my environment), so "perfectly" is my best verified effort, not a guarantee against a dependency shipping another breaking change after this was written.

Tools exposed

  • search_wb_notices -- keyword + filter search (country, sector, notice type, procurement method), paginated.
  • get_wb_notice -- full detail for one notice by ID.

Deploying from a computer

unzip worldbank-procurement-mcp.zip
cd worldbank-procurement-mcp
npm install
npm start          # local dev server + MCP Inspector to test first
npx wrangler login
npx wrangler deploy

Test locally before deploying:

npx @modelcontextprotocol/inspector@latest

Point it at http://localhost:8788/mcp, Connect, List Tools.

Deploying from your phone only

If you don't have a computer handy, this replaces the existing world-bank-mcp Worker's code without touching a terminal:

  1. On github.com (mobile browser), open the repo backing your Worker.
  2. Tap into package.json, tap the pencil (edit) icon, delete the contents, paste in the new package.json from this zip, commit to main.
  3. Repeat for src/index.ts (the big one -- this is the actual fix), wrangler.jsonc, tsconfig.json, and .gitignore.
  4. If your Worker is connected to this repo for auto-deploy (check Workers & Pages → world-bank-mcp → Settings → Build), each commit to main redeploys automatically -- watch Deployments for the new one to go live.
  5. If it's not connected to a repo yet: Workers & Pages → world-bank-mcp → Settings → Build → Connect to Git, pick this repo, and it'll deploy from there going forward.

Either way, after it redeploys, go back to the MCP playground and tap Add on https://world-bank-mcp.maksgstaad.workers.dev/mcp again.

Notes

  • No secrets required -- the World Bank API is open.
  • compatibility_date in wrangler.jsonc is pinned to 2026-07-30; bump it periodically per Cloudflare's Workers changelog.
  • If this still fails after redeploying, check Observability again -- the new try/catch means you should now see the actual error message and stack trace in the log entry, not just a bare error code. Paste that back and I'll fix the real cause rather than guessing again.

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选