Click on "Install 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., "@mcp-commandsshow me my recent command history and usage stats"
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.
mcp-commands
MCP server สำหรับติดตามการใช้งาน AI commands
เก็บข้อมูลว่าใช้ command อะไรบ้าง เมื่อไหร่ และบริบทใดบ้าง โดยใช้ PostgreSQL เป็น storage
Architecture
ไม่ต้องแยก server กับ client — codebase เดียวรองรับทั้งสองโหมดผ่าน MCP_TRANSPORT
Option A: Central Server (แนะนำ)
Deploy บน private server
เพิ่มใน Claude Code (~/.claude.json) — ทุก machine
ข้อมูลทุก session เก็บรวมใน Postgres เดียวกัน
Option B: รัน Local ด้วย uvx
สำหรับคนที่อยากรัน instance ของตัวเองแบบ stdio (ต้องมี PostgreSQL อยู่แล้ว)
เพิ่มใน Claude Code (~/.claude.json):
MCP Tools
Tool | คำอธิบาย |
| บันทึก command ที่ใช้งาน |
| ดูประวัติการใช้งาน |
| สถิติสรุปการใช้งาน |
| ค้นหา command ในประวัติ |
| ลบ record ด้วย id |
ตัวอย่างการใช้งาน
Environment Variables
Variable | Default | คำอธิบาย |
|
| PostgreSQL DSN |
|
|
|
|
| Port สำหรับ SSE mode |
Categories แนะนำ
Category | คำอธิบาย |
| git related commands |
| session management |
| research tools |
| oracle commands |
| coding tools |
| Claude Code skills |