crm-cliのロゴ

crm-cli

コミュニティ
jdanielnd

Your contacts, in your terminal.

公開者jdanielnd
リポジトリcrm-cli
言語Go
フォーク
6
スター
36
利用可能なツール
0
通信方式stdio
カテゴリ
リンク
  • ツールをAIワークフローに接続

    crm-cliは、対応するAIクライアントやAIエージェントから利用できるMCP機能を提供します。

  • 0個の利用可能なツール

    呼び出し可能なアクションを以下で確認できます。サーバーから提供されている場合は、名前や説明も表示されます。

  • コピーして使える設定

    セットアップ用の設定例を使って、お好みのMCPクライアントにこのサーバーを設定できます。

  • オープンソースの注目度

    リンク先のリポジトリには36件のスターと6件のフォークがあります。

crm — your contacts, in your terminal.

crm banner

CI Go Report Card License: MIT

A local-first personal CRM that lives in your terminal. Manage contacts, organizations, interactions, deals, and tasks — all from the command line. Ships with a built-in MCP server so AI agents like Claude can read and update your CRM directly.

Single static binary. SQLite database. No cloud. No accounts. Your data stays on your machine.

Features

  • People & Organizations — contacts with full profiles, linked to companies
  • Interaction Log — track calls, emails, meetings, notes, and messages
  • Deals & Pipeline — sales opportunities with stages, values, and a pipeline view
  • Tasks — follow-ups with due dates, priorities, and completion tracking
  • Tags — labels on any entity for flexible organization
  • Relationships — person-to-person links (colleague, mentor, referred-by, …)
  • Full-Text Search — find anything across all entities instantly
  • Context Briefing — one command to get everything about a person before a meeting
  • AI-Ready — built-in MCP server for Claude and other AI agents
  • Multiple Output Formats — table, JSON, CSV, TSV — pipe into anything
  • Zero Dependencies — single binary, pure-Go SQLite, runs anywhere

Install

bash
# Homebrew (macOS/Linux)
brew install jdanielnd/tap/crm

# Go
go install github.com/jdanielnd/crm-cli/cmd/crm@latest

# Or download a binary from GitHub Releases
# https://github.com/jdanielnd/crm-cli/releases

Quick Start

bash
# Add a company
crm org add "Acme Corp" --domain acme.com

# Add a contact and link them to the org
crm person add "Jane Smith" --email jane@example.com --org 1

# Log a call
crm log call 1 --subject "Intro call"

# Get a full briefing before your next meeting
crm context 1

# See your dashboard
crm status

Commands

People

bash
crm person add "Jane Smith" --email jane@example.com --phone 555-1234 --org 1
crm person list                          # all contacts
crm person list --tag vip --limit 10     # filtered
crm person show 1                        # full details
crm person edit 1 --title "CTO" --company "Acme Corp"
crm person delete 1                      # soft-delete (recoverable)

Organizations

bash
crm org add "Acme Corp" --domain acme.com --industry SaaS
crm org list
crm org show 1 --with-people             # show org + its members
crm org edit 1 --domain acme.io
crm org delete 1

Interactions

bash
crm log call 1 --subject "Discussed roadmap" --content "Agreed on Q2 timeline"
crm log email 1 --subject "Follow-up" --direction outbound
crm log meeting 1 2 --subject "Product demo" --at "2026-03-05 14:00"
crm log note 1 --subject "Quick check-in" --content "Seemed interested"
crm log list --person 1 --limit 5        # recent interactions with person

Deals

bash
crm deal add "Website Redesign" --value 15000 --person 1 --stage proposal
crm deal list --open                     # exclude won/lost
crm deal list --stage proposal
crm deal show 1
crm deal edit 1 --stage won --closed-at 2026-03-15
crm deal delete 1
crm deal pipeline                        # summary by stage

Tasks

bash
crm task add "Follow up on proposal" --person 1 --due 2026-03-14 --priority high
crm task list                            # open tasks
crm task list --overdue                  # past due
crm task list --all                      # include completed
crm task show 1
crm task edit 1 --priority medium
crm task done 1                          # mark completed
crm task delete 1

Tags

bash
crm tag apply person 1 "vip"
crm tag apply deal 1 "q2"
crm tag show person 1                    # tags on a person
crm tag remove person 1 "vip"
crm tag list                             # all tags
crm tag delete "old-tag"                 # remove tag entirely

Relationships

bash
crm person relate 1 2 --type colleague --notes "Met at ReactConf"
crm person relationships 1               # list all relationships
crm person unrelate 1                    # remove by relationship ID

Relationship types: colleague, friend, manager, mentor, referred-by

Search

bash
crm search "jane"                        # searches people, orgs, interactions, deals
crm search "roadmap" --type interaction  # filter by entity type

Context Briefing

bash
crm context 1                            # full briefing by person ID
crm context "Jane Smith"                 # or by name

Returns person profile, organization, recent interactions, open deals, pending tasks, relationships, and tags — everything you need before a meeting.

Dashboard

bash
crm status

Shows contact/org counts, open deals with total value, task counts, overdue items, pipeline breakdown, and recent activity.

Output Formats

Every command supports --format / -f:

bash
crm person list                          # table (default in TTY)
crm person list -f json                  # JSON (default when piped)
crm person list -f csv                   # CSV
crm person list -f tsv                   # TSV

Use -q / --quiet for minimal output (just IDs), useful for scripting:

bash
crm person list --tag vip -q | xargs -I{} crm tag apply person {} "priority"

Piping & Composition

crm follows Unix conventions — data to stdout, messages to stderr, structured exit codes — so it plays well with other tools:

bash
# Bulk tag everyone at an org
crm person list -f json | jq '.[] | select(.org_id == 1) | .id' | xargs -I{} crm tag apply person {} "acme-team"

# Interactive selection with fzf
crm person list -f tsv | fzf | cut -f1 | xargs crm person show

# Export contacts to CSV
crm person list -f csv > contacts.csv

# Overdue task notifications
crm task list --overdue -f json | jq -r '.[] | "OVERDUE: \(.title)"'

Exit codes: 0 success, 1 error, 2 usage, 3 not found, 4 conflict, 10 database error.

AI Integration (MCP Server)

crm includes a built-in MCP server so AI agents can query and update your CRM over a structured protocol.

Claude Code

bash
claude mcp add crm -- crm mcp serve

Then copy AGENT.md into your project as CLAUDE.md so Claude knows how to use the CRM effectively.

Claude Desktop (macOS)

  1. Open the config file at ~/Library/Application Support/Claude/claude_desktop_config.json

  2. Add the CRM server (if the file already has other servers, add the "crm" entry inside the existing mcpServers object):

json
{
  "mcpServers": {
    "crm": {
      "command": "/opt/homebrew/bin/crm",
      "args": ["mcp", "serve"]
    }
  }
}

Note: Use the full path to the binary. Homebrew on Apple Silicon installs to /opt/homebrew/bin/crm, on Intel Macs to /usr/local/bin/crm. Run which crm to find yours.

  1. Restart Claude Desktop

  2. Create a new Project, click the project settings, and paste the contents of AGENT.md into the project instructions. This teaches Claude when to log interactions, how to maintain contact summaries, tagging conventions, and more.

Available Tools

ToolDescription
crm_person_searchSearch people by name, email, tag, org
crm_person_getGet full details for a person
crm_person_createCreate a new person
crm_person_updateUpdate person fields
crm_person_deleteDelete (archive) a person
crm_person_relateCreate relationship between people
crm_org_searchSearch organizations
crm_org_getGet org details with members
crm_interaction_logLog a call, email, meeting, or note
crm_interaction_listList interactions for a person
crm_searchCross-entity full-text search
crm_contextFull person briefing
crm_deal_createCreate a deal
crm_deal_updateUpdate deal stage/fields
crm_task_createCreate a task
crm_task_listList open tasks
crm_tag_applyApply a tag
crm_statsCRM summary stats

Example AI Workflow

After a meeting, tell Claude:

"Just had a great meeting with Jane. We agreed on the timeline, she'll sign next week."

Claude can:

  1. Log the interaction with crm_interaction_log
  2. Update the deal stage with crm_deal_update
  3. Create a follow-up task with crm_task_create
  4. Update Jane's summary with crm_person_update

The summary field on contacts acts as a living dossier that AI agents maintain — reading it before meetings for context, updating it after interactions with new facts and preferences.

Configuration

The database lives at ~/.crm/crm.db by default. Override with:

bash
# Flag (highest priority)
crm --db /path/to/crm.db person list

# Environment variable
export CRM_DB=/path/to/crm.db

The database and directory are auto-created on first use.

iCloud Sync (macOS)

Point your database to iCloud Drive for automatic backup across machines:

bash
export CRM_DB="$HOME/Library/Mobile Documents/com~apple~CloudDocs/crm/crm.db"

SQLite WAL mode handles concurrent reads well, but avoid writing from two machines simultaneously.

Building from Source

bash
git clone https://github.com/jdanielnd/crm-cli.git
cd crm-cli
go build -o crm ./cmd/crm
go test ./...

Requires Go 1.23+. No CGO — builds anywhere Go runs.

Tech Stack

ComponentChoice
LanguageGo
DatabaseSQLite via modernc.org/sqlite (pure Go, no CGO)
CLICobra
MCPmcp-go
SearchSQLite FTS5

License

MIT

crm-cliのMCPを複数のAIモデルで活用

TypingMindはワークスペース単位でMCPツールに接続します。そのため、一度crm-cliに接続すれば、モデルごとに個別に設定することなく、TypingMind内のさまざまなAIモデルで利用できます。 このMCPは、デバイス上のTypingMind MCPコネクタを通じてローカルで動作します。

ローカルコネクタのセットアップガイド

MCPサーバーが、お使いのコンピューター上のローカルファイル、アプリ、非公開リソースにアクセスする必要がある場合は、この方法を使います。

1

MCP設定を開く

TypingMindで「設定」、「詳細設定」、「MCP」の順に進み、「コネクタを設定」を選択してください。

  1. ブラウザでTypingMindを開いてください。
  2. 設定アイコンをクリックしてください。
  3. 「詳細設定」に移動してください。
  4. 「MCP」セクションを開いてください。
  5. 「コネクタを設定」をクリックし、「このデバイス」を選択してください。
「このデバイス」が選択されたTypingMindのMCPコネクタ設定画面
2

コネクタのコマンドを実行

「このデバイス」を選択し、TypingMindからコマンドをコピーしてターミナルで実行してください。MCPの使用中は、プロセスを実行したままにしてください。

  1. TypingMindに表示されるセットアップコマンドをコピーしてください。
  2. macOSではターミナルを、WindowsではWindows Terminalを開いてください。
  3. コマンドを貼り付けて実行してください。
  4. ターミナルで続行の確認を求められた場合は、パッケージのインストールを承認してください。
  5. MCPツールの使用中は、ターミナルウィンドウを開いたまま、プロセスの実行を継続してください。
3

crm-cliをサーバーとして追加

コネクタのステータスが「準備完了」になったら、「サーバーを編集」をクリックし、MCPサーバーの設定を貼り付けてください。

  1. コネクタのステータスが「準備完了」になるまでお待ちください。
  2. 「サーバーを編集」をクリックしてください。
  3. crm-cliのMCPサーバー設定を貼り付けてください。
  4. サーバー一覧を保存してください。
  5. コネクタが引き続き使用可能か確認するには、更新してください。
稼働中のサーバーと「サーバーを編集」ボタンが表示されたTypingMindのMCP設定画面
{
  "mcpServers": {
    "crm-cli": {
      "command": "npx",
      "args": [
        "-y",
        "<mcp-server-package>"
      ]
    }
  }
}
4

複数のモデルで同じ接続を使用

サーバー一覧を保存し、「プラグイン」を開いてcrm-cliのMCPツールを有効にしてください。その後、TypingMindで対応するAIモデルを選択し、チャットでツールを使うか、AIエージェントに割り当ててください。

  1. TypingMindの「プラグイン」ページを開いてください。
  2. crm-cliのMCPツールを有効にしてください。
  3. チャットを開始し、使用するAIモデルを選択してください。
  4. MCPツールをチャットで使うか、AIエージェントに割り当ててください。
  5. MCPに再接続することなく、必要に応じて別のAIモデルに切り替えられます。
選択したAIモデルと有効なMCPツールを使用したTypingMindのチャット
crm-cliを使ってこのタスクを手伝ってもらえますか?
crm-cli
はい、読みました。
crm-cliで調べた結果をお伝えします。

よくある質問

crm-cli MCPサーバーは何に使いますか?

crm-cliは、対応するAIクライアントを外部ツールやコンテキストに接続するためのMCPサーバーです。TypingMindでは、このMCPサーバーを一度追加するだけで、AIワークスペース内でそのツールを利用できるようになります。

TypingMindでcrm-cli MCPを複数のAIモデルと併用できますか?

はい。TypingMindはワークスペース単位でMCPツールに接続するため、モデルごとにMCPサーバーを設定する必要はありません。Claude、ChatGPT、Geminiや、TypingMindで設定したその他のAIモデルでcrm-cliを利用できます。

TypingMindでcrm-cli MCPを使うメリットは何ですか?

TypingMindは、複数のAIモデル、プロンプト、プラグイン、AIエージェント、APIキー、MCPツールを1つのワークスペースにまとめられる、LLMチャット向けの優れたフロントエンドです。crm-cliを接続すると、TypingMindでチャットのワークフローを整理しながら、お好みのモデルでそのMCPツールを利用できます。

crm-cli MCPをTypingMindに接続するにはどうすればよいですか?

crm-cliはTypingMindのローカルMCPコネクタ経由で動作します。MCPサーバーがコンピューター上のローカルファイル、デスクトップアプリ、コマンドラインツール、プライベートリソースにアクセスする必要がある場合に最適です。

TypingMindでcrm-cli MCPのどのようなツールを利用できますか?

crm-cliはMCP機能を提供しています。TypingMindのプラグインページで有効にすると、チャットで使用したり、AIエージェントに割り当てたりできます。

crm-cli MCPを使うには、APIキーをTypingMindと共有する必要がありますか?

いいえ。TypingMindはローカルファーストの設計で、モデルプロバイダー、APIキー、プロンプト、MCP設定をご自身で管理できます。crm-cliで認証が必要な場合は、接続の作成時に、そのMCPサーバーに必要なヘッダー、OAuth設定、またはローカル設定を追加してください。

関連するMCPサーバー

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇