contact-verification-mcp
Enables agents to verify postal addresses, email addresses, and phone numbers against Melissa's Global Verification APIs before acting on the data, including batch verification and a per-session call budget to prevent runaway costs.
README
contact-verification-mcp
An MCP server wrapping Melissa's Global Address, Global Email, and Global Phone verification APIs. Built to accompany the SD Times / Melissa developer article "Building an MCP Server for a Verification API."
What this is
Three tools an agent can call to check whether contact data is real before acting on it, plus a batch tool and a per-session call budget so an agent can't loop itself into a runaway bill:
verify_postal_addressverify_emailverify_phoneverify_batch
See src/melissaClient.ts for the design choices behind the tool
descriptions, the three-state (confirmed / partially confirmed / not
confirmed) results, and why phone line-type is deliberately not exposed.
Setup
npm install
cp .env.example .env
# edit .env and set MELISSA_LICENSE_KEY to your own key
npm run build
npm start
The server speaks MCP over stdio, so it's meant to be launched by an MCP client (Claude Code, Claude Desktop, or any other MCP-compatible host), not run standalone for interactive use.
Testing
npm test # runs entirely against recorded fixtures, no network calls, no key required
npm run typecheck # type-checks src/ and tests/ together
Fixtures in tests/fixtures/ are marked with a _source field: REAL means
copied verbatim from Melissa's published OpenAPI examples
(github.com/MelissaData/MelissaCloudAPI-OpenAPI-Specifications); SYNTHETIC
means constructed for test coverage because no real example of that shape
exists in Melissa's public spec (failure cases, mainly). Don't treat a
synthetic fixture's exact result codes as verified against a live account.
Running live tests
MELISSA_LICENSE_KEY=your-real-key npm run test:live
This makes real calls against Melissa's API and costs API credits. It is
never run as part of npm test or CI. Do not put a real key in any committed
file; set it as an environment variable at run time only.
Result code provenance
Every Melissa result code referenced in this codebase (AV24, ES01,
ES07, ES08, ES21, PS01, PS20, PS22) was confirmed by grep-ing
Melissa's own published OpenAPI spec examples, not guessed or carried over
from an older article draft. Specifically:
AV24is the onlyAV-prefixed code that appears anywhere in Melissa's Global Address spec examples. There is no confirmed code for a distinct "confirmed to subpremises" tier, so this client does not claim one.- Global Email's spec examples only ever show
ES-prefixed codes. NoEE-prefixed code appears anywhere in that spec. - Global Phone's line-type detection (mobile/landline/VoIP) is documented as Premium-mode-only and US/CA-only, so it is not surfaced as a general capability here.
If your account's real responses include codes not listed above, that's a sign this client needs updating, not that the new code is wrong.
What's not done yet
- Redis-backed cache for multi-instance deployments (currently in-process
LRU only, see
src/cache.ts). - Line-type detection behind a feature flag for accounts with Premium mode enabled.
- Broader country coverage testing for Global Address beyond the US/UK/DE examples in Melissa's own spec.
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。