# 対応するMCPサーバー (`counterparts-mcp`)

> AI のローカルファースト記憶: AI は解釈し、意図的に忘れ、セッション全体にわたって自己を保持します。

- **Canonical URL:** https://syndipath.com/ja/mcp/counterparts-mcp
- **Runtime:** `npm` | **Transport:** STDIO | **License:** MIT | **Package:** `counterparts`
- **Upvotes:** 100 | **GitHub Stars:** 319 | **Weekly Installs:** 2552
- **Security Note:** HTTP-200 は NPM レジストリ (対応するもの) で検証済み。ワークスペーススコープの STDIO サブプロセスで npx を使用して実行します。

## Quick CLI Setup
```bash
# Run directly via Node npx
npx -y counterparts

# Add to Claude Code CLI
claude mcp add counterparts-mcp -- npx -y counterparts
```

## MCP Manifest (`mcp.json`)
```json
{
  "mcpServers": {
    "counterparts-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "counterparts"
      ]
    }
  }
}
```

## Exposed MCP Tools
- `counterparts_mcp_semantic_search(query: string, top_k?: number)`: Local-first memory for AI: it interprets, forgets on purpose, and keeps a self across sessions.
- `counterparts_mcp_upsert_context(content: string, metadata?: object)`: Indexes chunked technical context with deterministic metadata filters.
