Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@DataMerge MCPEnrich stripe.com and show me their corporate hierarchy"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
DataMerge MCP (Model Context Protocol)
A Model Context Protocol (MCP) server for the DataMerge Company API, enabling AI assistants to enrich and retrieve company data via DataMerge.
What is this?
This MCP server connects AI assistants (like Claude, ChatGPT, and others that support MCP) to the DataMerge Company API. It lets tools start enrichment jobs, poll job status, fetch company records, and inspect corporate hierarchies using DataMerge’s infrastructure and data model, following the same operation set exposed in the DataMerge n8n node [https://github.com/poolside-ventures/n8n-nodes-datamerge].
How it works:
Provide your DataMerge API key to the MCP server (environment variable or
configure_datamergetool).Configure your AI assistant to use this MCP server.
Ask your assistant to enrich companies, look up company details, or explore corporate hierarchies; the assistant will call DataMerge under the hood.
If you don’t have a DataMerge API key yet, you can use the public API schema at http://api.datamerge.ai/schema to understand available operations.
Features
Company Enrichment: Start asynchronous enrichment jobs via
POST /v1/company/enrich.Job Status: Poll enrichment jobs via
GET /v1/job/{job_id}/status.Company Lookup: Fetch a single company via
GET /v1/company/get.Hierarchy: Retrieve corporate hierarchy via
GET /v1/company/hierarchy.Type Safety: Full TypeScript support with DataMerge-oriented types and Zod schemas.
Authentication Support: Token-based authentication (
Authorization: Token <API_KEY>).Health Checks: Basic health monitoring via
/auth/info.MCP Protocol Compliance: Full Model Context Protocol server implementation.
Dual Mode Support: Run locally (stdio) or remotely (HTTP/SSE).
Installation
Quick Start
1. Install and Configure
2. Configure the MCP Server
You can configure the DataMerge API client with your API key using either an environment variable or the configure_datamerge tool.
Alternatively, set the environment variable:
3. Use the Available Tools
The MCP server provides the following tools:
Start Company Enrichment
Start Company Enrichment and Wait
Get Company Enrichment Result
Get Company
Get Company Hierarchy
Health Check
Deployment Options
The MCP server can be run in two modes:
1. Local Mode (Stdio Transport)
For local integration with AI assistants like Claude Desktop. Uses stdio transport for communication.
2. HTTP Mode (Streamable HTTP/SSE Transport)
For remote deployment with HTTP/SSE transport. This allows the MCP server to be accessed over the network.
Running the HTTP Server
Server Endpoints
MCP endpoint (SSE + JSON-RPC):
POST /– MCP client-to-server messagesGET /– MCP server-to-client SSE streamDELETE /– Terminate session
Health Check:
GET /health– Server health status
Authentication
All HTTP requests require a DataMerge API key in the Authorization header:
The same API key is then used by the MCP server to authenticate with the DataMerge API.
Testing the HTTP Server
MCP Integration
Using with AI Assistants
This MCP server can be integrated with AI assistants like Claude, ChatGPT, and others that support the Model Context Protocol.
Configuration Example
Available MCP Tools
The server exposes these tools for AI assistants:
configure_datamerge– Configure API connection (optional ifDATAMERGE_API_KEYis set).start_company_enrichment– Start an enrichment job.start_company_enrichment_and_wait– Start an enrichment job and poll until completion or timeout.get_company_enrichment_result– Poll job status and results.get_company– Fetch a single company record.get_company_hierarchy– Retrieve parents/children for a company.health_check– Verify API connectivity using/auth/info.
Usage Examples
As a Library
As an MCP Server
Configuration
Environment Variables
You can configure the MCP server using environment variables:
Authentication
The MCP server uses the DataMerge API key for all outbound API requests and for optional HTTP authentication in HTTP mode.
Development
Running Tests
Linting
CLI Usage
The package includes command-line interfaces for running the MCP server:
Error Handling
The MCP server provides detailed error messages for common issues:
Configuration errors (e.g., missing API key).
Authentication errors from DataMerge.
Validation errors for tool arguments (via Zod).
API errors from the DataMerge API (surfaced as textual error content).
License
MIT License – see LICENSE for details.