Spec Driven Development
MCP Server that facilitates spec-driven development workflows, not just Vibe Coding.
คำอธิบายจากผู้ทำ (ภาษาอังกฤษตามต้นฉบับ)
Model Context Protocol server for CiviCRM — AuthX-first, schema-introspected, write-gated.
สามเรื่องนี้ไม่รวมเป็นคะแนนเดียว เพราะความเห็น การวัด และความนิยม เป็นคนละเรื่องกัน
ตัวนี้ยังไม่ได้เรียบเรียงเป็นภาษาไทย ด้านล่างคือข้อเท็จจริงที่เราอ่านจาก registry
เลือกโปรแกรม AI ที่คุณใช้ แล้วคัดลอกค่าตั้งไปวาง
CIVICRM_BASE_URL, CIVICRM_API_KEY, CIVICRM_CMS, CIVICRM_SITE_KEY, CIVICRM_AUTH_MODE, CIVICRM_ALLOW_WRITES, CIVICRM_ALLOW_DELETESค่าที่ติดป้ายความลับคือกุญแจของบัญชีคุณ อย่าส่งให้ใคร และอย่าวางในแชต
ต้องเตรียมก่อน
คุณใช้แอปไหน
เลือกแอปด้านบน เราจำไว้ให้ ครั้งหน้าปุ่มจะขึ้นว่า “ติดตั้งลง …”
เปิด Claude Desktop → Settings → Developer → Edit Config แล้ววางค่านี้ในไฟล์ claude_desktop_config.json
{
"mcpServers": {
"civicrm": {
"command": "npx",
"args": [
"-y",
"civicrm-mcp"
],
"env": {
"CIVICRM_BASE_URL": "ใส่ค่าของคุณ",
"CIVICRM_API_KEY": "ใส่ค่าของคุณ",
"CIVICRM_CMS": "ใส่ค่าของคุณ",
"CIVICRM_SITE_KEY": "ใส่ค่าของคุณ",
"CIVICRM_AUTH_MODE": "ใส่ค่าของคุณ",
"CIVICRM_ALLOW_WRITES": "ใส่ค่าของคุณ",
"CIVICRM_ALLOW_DELETES": "ใส่ค่าของคุณ"
}
}
}
}พิมพ์คำสั่งนี้ใน Terminal
claude mcp add civicrm --env CIVICRM_BASE_URL='ใส่ค่าของคุณ' --env CIVICRM_API_KEY='ใส่ค่าของคุณ' --env CIVICRM_CMS='ใส่ค่าของคุณ' --env CIVICRM_SITE_KEY='ใส่ค่าของคุณ' --env CIVICRM_AUTH_MODE='ใส่ค่าของคุณ' --env CIVICRM_ALLOW_WRITES='ใส่ค่าของคุณ' --env CIVICRM_ALLOW_DELETES='ใส่ค่าของคุณ' -- npx -y civicrm-mcpเติมค่าที่เว้นว่างไว้ก่อนรัน
วางในไฟล์ .cursor/mcp.json ของโปรเจกต์ หรือ ~/.cursor/mcp.json
{
"mcpServers": {
"civicrm": {
"command": "npx",
"args": [
"-y",
"civicrm-mcp"
],
"env": {
"CIVICRM_BASE_URL": "ใส่ค่าของคุณ",
"CIVICRM_API_KEY": "ใส่ค่าของคุณ",
"CIVICRM_CMS": "ใส่ค่าของคุณ",
"CIVICRM_SITE_KEY": "ใส่ค่าของคุณ",
"CIVICRM_AUTH_MODE": "ใส่ค่าของคุณ",
"CIVICRM_ALLOW_WRITES": "ใส่ค่าของคุณ",
"CIVICRM_ALLOW_DELETES": "ใส่ค่าของคุณ"
}
}
}
}เบราว์เซอร์จะถามก่อนเปิดแอป จากนั้นแอปแสดงค่าตั้งให้ตรวจแล้วกดยืนยัน ช่อง key เว้นว่างไว้ให้คุณใส่เอง
วางในไฟล์ .vscode/mcp.json ของโปรเจกต์
{
"servers": {
"civicrm": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"civicrm-mcp"
],
"env": {
"CIVICRM_BASE_URL": "ใส่ค่าของคุณ",
"CIVICRM_API_KEY": "ใส่ค่าของคุณ",
"CIVICRM_CMS": "ใส่ค่าของคุณ",
"CIVICRM_SITE_KEY": "ใส่ค่าของคุณ",
"CIVICRM_AUTH_MODE": "ใส่ค่าของคุณ",
"CIVICRM_ALLOW_WRITES": "ใส่ค่าของคุณ",
"CIVICRM_ALLOW_DELETES": "ใส่ค่าของคุณ"
}
}
}
}เบราว์เซอร์จะถามก่อนเปิดแอป จากนั้นแอปแสดงค่าตั้งให้ตรวจแล้วกดยืนยัน ช่อง key เว้นว่างไว้ให้คุณใส่เอง
ตัวนี้รันในเครื่องคุณ แต่ ChatGPT ต่อได้เฉพาะ server บนอินเทอร์เน็ต ลองเลือกแอปอื่น
ตัวเลือกเก็บในคุกกี้บนเครื่องนี้ ไม่ต้องมีบัญชี
CIVICRM_CMS envCIVICRM_AUTH_MODE envCIVICRM_ALLOW_WRITES envCIVICRM_ALLOW_DELETES envค่าตั้งนี้สร้างจากข้อมูลใน registry ของผู้ทำ ถ้าไม่ตรงกับ README ให้เชื่อ README
รันในเครื่องคุณ รายการเครื่องมือจะขึ้นในแอป AI หลังติดตั้ง
เราตรวจจากข้อมูลที่ใครก็เปิดดูได้ ยังไม่ได้อ่านโค้ด ข้อที่ไม่เกี่ยวกับตัวนี้ไม่นับในตัวหาร · ตรวจเมื่อ 8 พ.ย. 2569
ชื่อใน registry ยืนยันด้วยบัญชี GitHub YogiAdhik ซึ่งเป็นเจ้าของ repo
ยังไม่ได้อ่านข้อมูล repo จาก GitHub
ยังไม่ได้อ่านข้อมูล repo จาก GitHub
ตัวนี้รันบนเครื่องคุณ ไม่มี endpoint บนอินเทอร์เน็ต
ตัวนี้รันบนเครื่อง ใช้ค่าที่ตั้งในเครื่องแทน
รันในเครื่องคุณ เราอ่านรายการเครื่องมือได้เฉพาะตัวที่มี endpoint บนอินเทอร์เน็ต
เทียบกับทุก server ที่ยังใช้งานในหมวดนี้ทั้งทะเบียน ดาวนับเฉพาะเมื่อผู้ลงทะเบียนเป็นเจ้าของ repo
จากการตรวจเบื้องต้นของเรา ผ่าน 1 จาก 1 ข้อที่ตรวจได้ เรายังไม่ได้อ่านโค้ด ก่อนใส่กุญแจหรือ token ให้ดูว่า server ขอสิทธิ์อะไร และเลือกกุญแจที่ทำได้เท่าที่จำเป็น
ต้องใส่ค่าเหล่านี้: CIVICRM_BASE_URL, CIVICRM_API_KEY, CIVICRM_SITE_KEY
รันบนเครื่องของคุณ โปรแกรม AI จะเปิด server ขึ้นมาเองเมื่อใช้ ข้อมูลไม่ต้องผ่านเซิร์ฟเวอร์ของผู้ทำ (ยกเว้นตัวที่ไปเรียกบริการออนไลน์ต่อ)
repo บน GitHub มีการแก้โค้ดล่าสุด – และส่งรุ่นล่าสุด (0.1.2) เข้า registry 7 เดือนที่ผ่านมา
โปรแกรมที่รองรับ MCP เช่น Claude Desktop, Claude Code, Cursor และ VS Code ตัวนี้ต้องมี Node.js ในเครื่องด้วย
ในหมวดเดียวกันมี Spec Driven Development, Remote Desktop Commander, Winecellarbuilders
server หมวดเดียวกันจากผู้ทำคนอื่น เรียงตามดาว
อ่านการ์ด:★ ดาว GitHubiสามเสา: รีวิว · ผลตรวจ · การใช้งานiอัปเดต = วันที่ส่งรุ่นล่าสุดเข้า registryi
MCP Server that facilitates spec-driven development workflows, not just Vibe Coding.
Remote Desktop Commander: use files, terminal and processes on your own computers from any AI app.
Find the team for your wine room.
ส่วนนี้คัดจาก repo ของผู้ทำตามต้นฉบับ PopNx MCP ไม่ได้ตรวจหรือรับรองเนื้อหา ตัด HTML รูปภาพ และสคริปต์ออกแล้ว ลิงก์จะพาออกนอกเว็บ
A Model Context Protocol server for CiviCRM. Lets any MCP-compatible client talk to a CiviCRM install through its APIv4.
Status: v0.1 — stdio transport, three tools, AuthX-first auth.
npm install
npm run build
See docs/INSTALL_CIVICRM.md for a 20-minute guide to running CiviCRM Standalone locally via DDEV.
Generate an API key for a dedicated "MCP Bot" contact:
access CiviCRM, view all contacts, optionally edit all contacts, authenticate with api key).Copy .env.example to .env and fill in:
CIVICRM_BASE_URL=https://crm.example.org
CIVICRM_CMS=drupal # or wordpress | standalone | backdrop CIVICRM_API_KEY=... CIVICRM_SITE_KEY=... # only if the site-key guard is enabled CIVICRM_AUTH_MODE=authx # or legacy for pre-AuthX sites CIVICRM_ALLOW_WRITES=false # writes off by default CIVICRM_ALLOW_DELETES=false # deletes off by default CIVICRM_ALLOW_GENERIC_API=false # civicrm_api4 passthrough off by default CIVICRM_DRY_RUN_DEFAULT=false # set true to make every write/delete a dry-run CIVICRM_TOOLS_ENABLED= # comma-separated allowlist; empty = all CIVICRM_TOOLS_DISABLED= # comma-separated denylist; wins over enabled
Any MCP-compatible client that supports stdio servers can load this. Add an entry like the one below to your client's MCP configuration file:
{
"mcpServers": { "civicrm": { "command": "npx", "args": ["-y", "civicrm-mcp"], "env": { "CIVICRM_BASE_URL": "https://crm.example.org", "CIVICRM_CMS": "drupal", "CIVICRM_API_KEY": "…", "CIVICRM_ALLOW_WRITES": "false" } } } }
Consult your client's documentation for where its MCP config file lives.
Diagnostics
| Tool | What it does |
|---|---|
civicrm_system_info | Connectivity / version sanity check; resolves the authenticated bot contact. |
civicrm_whoami | Resolves the bot contact and probes which entities it can read. Use this first when setting up. |
Read
| Tool | What it does |
|---|---|
civicrm_find_contacts | Search contacts by name or primary email. |
civicrm_get_contact | Fetch one contact by id, with sensible default fields. |
civicrm_get_relationships | List a contact's relationships with direction resolved. |
civicrm_get_contributions | List contributions with filters (donor, date window, status, type) and running sum. |
civicrm_list_events | List events (defaults to upcoming only). |
civicrm_list_saved_searches | Discover SearchKit SavedSearches the admin has built. |
civicrm_run_saved_search | Execute a SavedSearch by name via SearchDisplay.run. Safest way to run complex queries. |
Introspection
| Tool | What it does |
|---|---|
civicrm_list_entities | List every APIv4 entity available on the install (incl. extensions). |
civicrm_describe_entity | Return fields + actions for an entity. Call this before civicrm_api4 if unsure. |
civicrm_describe_field_options | Return the option list (enum values) for one field — cheaper than a full entity describe. |
Write (require `CIVICRM_ALLOW_WRITES=true`)
| Tool | What it does |
|---|---|
civicrm_create_contact | Create a contact; chains email/phone creation. |
civicrm_update_contact | Update fields on an existing contact by id. |
civicrm_log_activity | Record an Activity (Phone Call, Meeting, Email, custom types). |
civicrm_record_contribution | Record a donation / contribution. |
civicrm_add_to_group | Add a contact to a group (idempotent). |
civicrm_remove_from_group | Mark a contact as Removed from a group (preserves history). |
civicrm_register_for_event | Register a contact for an event (Participant.create). |
civicrm_create_membership | Create a Membership record; CiviCRM auto-calculates dates from the type. |
civicrm_add_note | Attach a free-text Note to a contact, contribution, activity, case, or relationship. |
civicrm_tag_contacts | Add a tag to up to 500 contacts in one call (idempotent). |
civicrm_untag_contacts | Remove a tag from contacts. Also requires CIVICRM_ALLOW_DELETES=true. |
civicrm_send_contribution_receipt | Trigger (or re-send) the standard receipt email for a contribution. |
Escape hatch (off by default)
| Tool | What it does |
|---|---|
civicrm_api4 | Generic APIv4 passthrough — any entity, any action. Off unless CIVICRM_ALLOW_GENERIC_API=true. Even then, writes/deletes still need their own flags. |
This server gives a language model a typed channel into your CRM. Two failure modes are worth naming:
Neither risk is unique to this server, but a CRM concentrates them: a single Contact.delete is irreversible, and the contents of the CRM are exactly the kind of free-text fields attackers target.
Defence is layered. No single layer is enough on its own.
access CiviCRM, view all contacts, and (only if needed) edit all contacts. Anything outside that returns a permission error at the CiviCRM layer, before this server even sees the call. Grant narrowly.CIVICRM_ALLOW_WRITES — without it, create/update/save/submit are refused.CIVICRM_ALLOW_DELETES — without it, delete/replace are refused.CIVICRM_ALLOW_GENERIC_API — without it, the civicrm_api4 passthrough is refused entirely. Typed tools (civicrm_update_contact, civicrm_log_activity, etc.) still work. Enable this only if you specifically need entities the typed tools don't cover; it widens blast radius to "anything CiviCRM can do."CIVICRM_DRY_RUN_DEFAULT — when true, every write/delete is short-circuited inside the client. The would-be APIv4 call is logged to the audit stream and returned to the agent, but CiviCRM is not touched. Reads still execute. Use this for the first week after enabling writes to validate behaviour before flipping to live.CIVICRM_TOOLS_ENABLED and CIVICRM_TOOLS_DISABLED accept comma-separated tool names and filter which tools the server registers. DISABLED wins over ENABLED. Use this to hand a specific agent a 3-tool surface (e.g. find_contacts,get_contact,get_contributions) instead of all-or-nothing on writes.api_key and hash fields are stripped from contact responses so credentials cannot leak back into the model's context.Every tool call emits one JSON line to stderr. Fields: ts, tool, args (with keys matching api_key|secret|token|password|hash|key redacted), dry_run, status (ok/error/refused), duration_ms, error_code, error_message. Pipe stderr to a file in your launcher config to keep an immutable audit trail:
civicrm-mcp 2>>/var/log/civicrm-mcp.audit.jsonl
This is what an admin shows their board when asked "what did the AI do on our donor database last week".
CIVICRM_ALLOW_WRITES=false and run only the read tools. Use civicrm_whoami to verify the bot's read permissions.CIVICRM_DRY_RUN_DEFAULT=true for a week. Watch the audit log. Then flip dry-run off.civicrm_api4. They have narrower schemas and clearer intent in approval prompts.civicrm_run_saved_search over hand-authored APIv4 queries when an admin has already built the right SearchKit search in the UI.MIT