Samecontact

io.github.GillMacedo由 GitHub 帳號 GillMacedo 發布v0.1.0更新於 Nov 3, 2026

Find duplicate customers and contacts in CSV exports. Your data stays on your machine.

已驗證STDIO僅桌面資料與分析商業與電商

概覽

AI 產生的概覽

在本機找出聯絡人/客戶 CSV 中可能重複的同一人,依電子郵件、電話、姓名與公司分組比對。

可以做什麼
  • 在聯絡人/客戶 CSV 中找出重複群組與待複核配對,並附上信心等級與判斷依據
  • 檢查不熟悉的 CSV,顯示辨識到的欄位與可讀取列數,但不回傳列內容
  • 兩個工具皆為唯讀,伺服器不含任何網路程式碼
適用情境
適合在匯入或寄送前清理 CRM 匯出檔、客戶名單或電子郵件名單,或估算檔案中實際有多少位不重複的客戶。對象為處理 CSV 的小型企業、業務團隊與行銷人員。
執行需求
以 stdio 本機程序執行,可透過 npx(Node.js)啟動,或以 Go 1.27 以上版本建置;npm 安裝支援 macOS 與 Linux,Windows 目前需使用 go install。不需要帳號、API 金鑰或網路存取。輸入須為 CSV,最大 50 MB。
安裝前請注意
contacts_find_duplicates 會把檔案中的姓名回傳給 MCP 用戶端,因而進入你所使用的 AI 模型;只有命令列工具才完全留在本機。結果僅為候選,合併前需人工確認。姓名比對以西方姓名為主,電話僅比較後 10 碼,且目前只在虛構資料上測試過,尚未驗證真實匯出檔。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Samecontact,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

samecontact: find duplicate customers and contacts in CSV files

[npm] [CI] [MIT license]

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?"

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/samecontactclaude plugin install samecontact@samecontact-marketplace

For other MCP clients:

json
{  "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@latest

Usage

Try it on the sample file in examples/. All the people in it are made up.

$ go run . find examples/contacts.csvSAME 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 phone13 contacts, 3 duplicate groups, 3 extra rows, 2 pairs to review

With 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

LevelEvidence
Same personSame email with matching names, same phone with matching names, or an identical row
LikelySame name and company, same name and work email domain, or same phone with one name missing
ReviewOne 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

ToolWhat it does
contacts_find_duplicatesReturns groups and review pairs, with a limit for large files
contacts_inspect_csvShows 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 merge command that suggests one combined row per group
  • Add a plugin icon

How pull requests work

  1. Open a PR. Fork the repo, work on a branch, and keep it to one change. Write a title that says what changes for users, because it becomes the changelog line: feat: goes under Added and fix: under Fixed.
  2. Automatic check. Code changes need tests, and make test must pass. Changes over 30 lines need a linked open issue (Closes #<number>), and a PR can have at most 800 changed lines. If something is missing, a comment tells you what to fix.
  3. Review. Claude reviews each PR automatically. Code PRs also get a security review and are tested in a sandbox. The review then merges the PR or asks for changes. PRs that change CI, agent settings, npm or Python dependencies, vendored code or build files can't be merged this way, and a comment says so. The same goes for anything the security review doesn't clear.
  4. Release. A merge that changes what users install becomes a new version within about two hours, with a GitHub Release and, if the project has one, its npm package. Docs and CI changes wait for the next release.

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:

If samecontact cleaned up your list, a star helps others find it.


MIT licensed.

Built by Giulliano Macedo, GoTech Solutions · LinkedIn · X

來源:README.md,提交 0065abc

工具

2

contacts_find_duplicates

Find duplicate contacts

Finds rows in a contact or customer CSV that are probably the same person, using emails, phone numbers, names and companies. Use to clean a CRM export, mailing list or customer list. Read-only, and never uses the network. Results include names from the file, so they reach the model. Report review pairs to the user instead of deciding them.

輸入參數path必填limitcolumns

contacts_inspect_csv

Inspect a contact CSV

Shows which columns samecontact detects in a CSV and how many rows it can read, without returning row contents. Use if the file is unfamiliar or a search found nothing.

輸入參數path必填

版本歷史

1
  1. v0.1.0最新Oct 31, 2026

評分

已滿足適用檢查項的 90%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分
  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具必需15 分
  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分