samecontact
Cleans up HubSpot contact and customer exports by finding duplicate rows (same person with differently written names, emails or phone numbers) before re-import, flagging each match with a confidence level and reason.
Analyzes Mailchimp mailing-list exports to identify subscribers who appear multiple times under varied names, emails or phone numbers, helping reduce wasted sends and inflated list counts.
Processes Salesforce contact exports to detect duplicate people and reports duplicate groups and pairs needing review, so records can be deduplicated before importing back into Salesforce.
Click on "Deploy 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., "@samecontactcheck customers.csv for duplicate contacts before I import into HubSpot"
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.
samecontact: find duplicate customers and contacts in CSV files
Clean up a CRM export, customer list or mailing list by finding rows that are the same person, even when the name, email or phone is written differently. For small businesses, sales teams and marketers.
Most customer lists contain the same person several times: "Robert Jones" and "Bob Jones", or Ana.Silva+news@ and ana.silva@. Duplicates waste mailing costs, annoy customers and overstate your numbers, while a simple dedupe in a spreadsheet misses most of them. samecontact compares emails, phone numbers, names and companies, then says how sure it is and why. It never merges anything itself. It's an MCP server and a single Go binary, with no account, no API key and no network access.
What you can ask your agent
"Find duplicates in my customer list."
"How many unique customers do I really have?"
"Clean up this HubSpot or Salesforce export before I import it."
"Which contacts in this mailing list are the same person?"
Related MCP server: Dataset Explorer MCP Server
Install
As a Claude Code plugin, which adds the MCP server and a skill that tells Claude when to use it. You need Node, which runs the server through npx:
claude plugin marketplace add GillMacedo/samecontact
claude plugin install samecontact@samecontact-marketplaceFor other MCP clients:
{
"mcpServers": {
"samecontact": {
"command": "npx",
"args": ["-y", "samecontact", "serve"]
}
}
}The npm install covers macOS and Linux. On Windows, use go install for now.
Or build the binary with Go 1.27 or newer:
go install github.com/GillMacedo/samecontact@latestUsage
Try it on the sample file in examples/. All the people in it are made up.
$ go run . find examples/contacts.csv
SAME PERSON (2)
rows 3, 4 Ana Silva / Silva, Ana [same email; same name and company]
rows 5, 6 Robert Jones / Bob Jones [same phone and matching name]
LIKELY: check these (1)
rows 7, 8 Maria Costa [same name and company]
REVIEW: a person should decide (2)
rows 11, 12 John Smith / John Smith [same name, different companies]
rows 13, 14 Lena Fischer / Omar Haddad [same email, different names: may be a shared address]
SKIPPED row 16: no name, email or phone
13 contacts, 3 duplicate groups, 3 extra rows, 2 pairs to reviewWith an installed copy, run samecontact find contacts.csv. Add --out marked.csv to write a copy with dup_group and dup_level columns, which you can sort in a spreadsheet. Your original file is never changed. Add --json for machine-readable output.
How it decides
Level | Evidence |
Same person | Same email with matching names, same phone with matching names, or an identical row |
Likely | Same name and company, same name and work email domain, or same phone with one name missing |
Review | One email or phone under different names, the same name alone, or a similar name at the same company |
It understands nicknames, initials, accents, name order, small typos, phone formats, Gmail dots and +tags. Addresses like info@ and free domains like Gmail don't count as evidence of the same person.
MCP tools
Tool | What it does |
| Returns groups and review pairs, with a limit for large files |
| Shows detected columns and row counts, without row contents |
Both are read-only. contacts_find_duplicates returns names from your file to the MCP client, so they reach whichever AI model you use. The CLI keeps everything on your machine.
FAQ
How do I remove duplicate contacts from a CSV? Run samecontact find contacts.csv --out marked.csv, review the groups, then delete or merge rows in your CRM or spreadsheet. The tool doesn't delete anything.
Does it work with HubSpot, Salesforce or Mailchimp exports? It reads CSV and recognizes common column names, and you can name others with --columns email=Mail,name=Who. It hasn't been tested on each product's real exports yet.
Is my customer data uploaded? The tool has no network code. Through MCP, results go to whichever AI model your client uses.
Limits
It finds candidates, and a person should check them before merging anything.
Name matching is built for Western names and common nicknames, so it will miss some variations in other naming systems.
Phones compare on their last 10 digits, so two numbers in different countries could collide.
It reads CSV only, up to 50 MB.
So far it has been tested on made-up data, not real exports. If yours fails, please open an issue with the column headers, not your data.
Contributing
Contributions are welcome, from people and from people working with AI agents. See CONTRIBUTING.md. Good first issues:
Add column names from more CRMs and languages
Add more nicknames, including non-English ones
Add an XLSX reader
Add a
mergecommand that suggests one combined row per groupAdd a plugin icon
AI disclosure
This project was largely generated with Claude Code and reviewed by its maintainer.
About me
I'm Giulliano Macedo, and I build developer tools at GoTech Solutions. Follow along or get in touch:
GitHub: GillMacedo
LinkedIn: giulliano
X: @giumacedo
If samecontact cleaned up your list, a star helps others find it.
MIT licensed.
Built by Giulliano Macedo, GoTech Solutions · LinkedIn · X
This server cannot be deployed
Maintenance
Related MCP Connectors
Clean, dedupe, join and reconcile CSV/Excel files. Runs on Apify, pay per use.
Detect-only CSV check before CRM import: duplicate, invalid and role emails, blanks, phones, dates.
Validate and clean CSV before import. Find duplicates, missing values and invalid dates with row-level reports. Apply only the cleanup you request; files are not retained. Run view_csv_demo free without a key. Custom CSV: EUR 9 for 100 operations, valid 90 days, no subscription. Setup: https://check.orvel.dev/docs/
Ask questions about a CSV in plain English and get answers, charts and cleaned data back.
Related MCP Servers
- FlicenseNot gradedqualityCmaintenanceAI-first CSV analysis tool that enables AI agents to analyze, query, and audit large CSV files directly within conversations, turning raw data into actionable insights.2-
- AlicenseBqualityBmaintenanceEnables AI clients to explore and analyze CSV datasets via tools for dataset overview, statistical summaries, missing value analysis, duplicate detection, correlation analysis, and outlier detection.956 PyPIMIT
- AlicenseAqualityBmaintenanceEnables MCP clients to analyze contact exports, identify duplicate people with evidence-based matching, merge them into a cleaned CSV, and report every conflicting value.4MIT
- AlicenseNot gradedqualityAmaintenanceEnables agents to run zero-config entity resolution on messy records from CSVs, tables or databases, automatically choosing match rules and clustering duplicates into stable entities with per-field provenance. Exposes the resulting identity layer through dozens of tools for deduping, merging/splitting records, auditing changes, and answering Customer 360 questions.135MIT