Calq MCP
A comprehensive MCP server for time tracking, project management, and AI-powered memory storage using semantic search. It enables users to log time, manage client billing, and capture shared or personal ideas through integrated tools and team collaboration features.
README
Calq MCP
A Model Context Protocol (MCP) server for time tracking, project management, AI-powered memory, and team collaboration.
Features
⏱️ Time Tracking
- Timer system - Start/stop timers for real-time tracking
- Manual logging - Log time with backdating support
- Billing - Mark entries as billable/billed, track unbilled time
🧠 AI-Powered Memory
- Semantic search - Find memories and entries by meaning, not just keywords
- Personal & shared - Keep notes private or share with your team
- Project/client linking - Associate memories with specific projects or clients
- Vector storage - Powered by ChromaDB and Voyage AI embeddings
👥 Team Collaboration
- GitHub OAuth - Authenticate team members via GitHub (integrated into MCP flow)
- Role-based access - Admin and member roles
- Per-user data - Timers and entries are user-scoped
📊 Project & Client Management
- Clients - Manage client information
- Projects - Link projects to clients with hourly rates
- Invoice summaries - Get unbilled time grouped by client with calculated values
Prerequisites
- Node.js 20+
- PostgreSQL - Relational database for structured data
- ChromaDB - Vector database for semantic search
- Voyage AI API key - For generating embeddings
- GitHub OAuth App - For user authentication
Installation
Option 1: Docker Compose (Recommended)
This automatically sets up Calq, PostgreSQL, and ChromaDB:
git clone https://github.com/Calq-dev/calq-mcp.git
cd calq-mcp
# Copy and configure environment
cp .env.example .env
# Edit .env with your API keys
# Start services (uses default ports 3000 and 8000)
docker compose up -d
# Or with custom ports
MCP_PORT=3001 CHROMA_PORT=8001 docker compose up -d
Services:
- Calq MCP:
http://localhost:${MCP_PORT}/mcp(default: 3000) - PostgreSQL: Internal to Docker (port 5432)
- ChromaDB:
http://localhost:${CHROMA_PORT}(default: 8000, internal to Docker)
Option 2: Local Development
# 1. Start PostgreSQL and ChromaDB (required)
docker run -d --name postgres -p 5432:5432 \
-e POSTGRES_USER=calq -e POSTGRES_PASSWORD=calq -e POSTGRES_DB=calq \
postgres:16-alpine
docker run -d --name chromadb -p 8000:8000 chromadb/chroma:latest
# 2. Clone and install
git clone https://github.com/Calq-dev/calq-mcp.git
cd calq-mcp
npm install
# 3. Configure environment
cp .env.example .env
# Edit .env with your API keys
# 4. Push database schema
npm run db:push
# 5. Start the server
node src/index.js
Configuration
Environment Variables
| Variable | Required | Description |
|---|---|---|
DATABASE_URL |
Yes | PostgreSQL connection URL |
POSTGRES_PASSWORD |
No | PostgreSQL password for Docker (default: calq) |
VOYAGE_API_KEY |
Yes | Voyage AI API key for embeddings |
CHROMA_URL |
No | ChromaDB URL (default: http://localhost:8000) |
GITHUB_CLIENT_ID |
Yes | GitHub OAuth App client ID |
GITHUB_CLIENT_SECRET |
Yes | GitHub OAuth App client secret |
MCP_PORT |
No | Server port (default: 3000) |
OAUTH_CALLBACK_URL |
No | OAuth callback (default: http://localhost:3000/oauth/callback) |
Database Management
Calq uses Drizzle ORM with PostgreSQL:
# Generate migrations from schema changes
npm run db:generate
# Apply migrations
npm run db:migrate
# Push schema directly (development)
npm run db:push
# Open Drizzle Studio
npm run db:studio
GitHub OAuth Setup
- Go to GitHub Developer Settings
- Click "New OAuth App"
- Fill in:
- Application name: Calq
- Homepage URL:
http://localhost:3000 - Authorization callback URL:
http://localhost:3000/oauth/github/callback
- Copy the Client ID and generate a Client Secret
- Add both to your
.envfile
Claude Desktop Configuration
Add to your Claude Desktop config (~/Library/Application Support/Claude/claude_desktop_config.json on macOS):
{
"mcpServers": {
"calq": {
"url": "http://localhost:3000/mcp"
}
}
}
When you first use Calq, Claude Desktop will open a browser for GitHub authentication.
Tools
Time Tracking
| Tool | Description |
|---|---|
commit |
Log time with message, project, and optional date |
start |
Start a timer for a project |
stop |
Stop timer and log the time |
timer_status |
Check if a timer is running |
cancel_timer |
Discard timer without logging |
delete |
Delete a time entry |
edit |
Modify an existing entry |
Summaries
| Tool | Description |
|---|---|
list_projects |
List all projects with total time |
list_projects_detailed |
Projects with client info and values |
get_project_summary |
Detailed summary for a project |
get_today_summary |
Today's time by project |
get_weekly_summary |
This week's time by day |
get_unbilled |
Unbilled time summary |
get_invoice_summary |
Unbilled time by client with values |
Memory
| Tool | Description |
|---|---|
remember |
Store a memory (personal/shared, linked to project/client) |
idea |
Quick capture an idea |
recall |
Search memories semantically |
search_entries |
Search time entries semantically |
list_memories |
List all memories |
list_ideas |
List all captured ideas |
forget |
Delete a memory |
Clients & Projects
| Tool | Description |
|---|---|
add_client |
Add a new client |
list_clients |
List all clients |
configure_project |
Create/update project with client and hourly rate |
Users
| Tool | Description |
|---|---|
whoami |
Show current user info |
list_users |
List all users (admin only) |
set_user_role |
Change user role (admin only) |
team_summary |
Team activity summary |
Usage Examples
"Start timing the website project"
"Stop - finished the navbar"
"Log 2 hours to API work yesterday: implemented auth"
"Remember: client wants deadline moved to January"
"Recall: what did the client say about deadlines?"
"What's my unbilled time for Acme Corp?"
"Configure project website with client Acme and rate 95"
Architecture
┌─────────────────┐ ┌─────────────────┐ ┌─────────────────┐
│ Claude Desktop │────▶│ Calq MCP │────▶│ ChromaDB │
│ │ │ (Port 3000) │ │ (Port 8000) │
└─────────────────┘ └────────┬────────┘ └─────────────────┘
│
▼
┌─────────────────┐
│ PostgreSQL │
│ (Port 5432) │
└─────────────────┘
- PostgreSQL - Source of truth for structured data (entries, projects, users)
- ChromaDB - Vector store for semantic search (memories, entry embeddings)
- Drizzle ORM - Type-safe database access layer
Data Storage
In Docker, data is persisted via volumes:
calq-data- Application datapostgres-data- PostgreSQL databasechroma-data- ChromaDB embeddings
License
MIT
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。