contact-verification-mcp

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.

Category
Visit Server

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_address
  • verify_email
  • verify_phone
  • verify_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:

  • AV24 is the only AV-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. No EE-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.

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured
E2B

E2B

Using MCP to run code via e2b.

Official
Featured