MCP Server
Connect to AI assistants via Model Context Protocol
The Clear Tangle MCP Server enables AI assistants like Claude, Cursor, and Kiro to interact directly with your Clear Tangle account. Manage tasks, capture thoughts, and get AI planning—all through natural conversation with your favorite AI assistant.
What is MCP?
The Model Context Protocol (MCP) is a standard that allows AI assistants to use external tools and data sources. Our MCP server provides 21 tools for task management, thought capture, and AI planning.
Supported Platforms
Claude Desktop
Official support
Cursor
IDE integration
Kiro
AI development
Installation
No installation required—use npx to run directly:
npx clear-tangle-mcpOr install globally:
npm install -g clear-tangle-mcpConfiguration
Claude Desktop
Config file locations:
- • macOS:
~/Library/Application Support/Claude/claude_desktop_config.json - • Windows:
%APPDATA%\Claude\claude_desktop_config.json - • Linux:
~/.config/claude/claude_desktop_config.json
{
"mcpServers": {
"clear-tangle": {
"command": "npx",
"args": ["-y", "clear-tangle-mcp"],
"env": {
"BACKEND_URL": "https://app.cleartangle.com/api",
"LOGIN_URL": "https://app.cleartangle.com/login"
}
}
}
}Cursor
Config: ~/Library/Application Support/Cursor/User/globalStorage/cursor.mcp/settings.json
Same JSON format as Claude Desktop.
Kiro
Config: ~/.kiro/mcp-servers.json
{
"servers": {
"clear-tangle": {
"command": "npx",
"args": ["-y", "clear-tangle-mcp"],
"environment": {
"BACKEND_URL": "https://app.cleartangle.com/api",
"LOGIN_URL": "https://app.cleartangle.com/login"
}
}
}
}Authentication
Four ways to authenticate:
1. API Key (Recommended)
Best for automationCreate an API key in Settings > API Keys and add it to your config:
"env": {
"CLEARTANGLE_API_KEY": "ctak_xxxx_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
"BACKEND_URL": "https://app.cleartangle.com/api"
}API keys don't expire and persist across restarts. Learn more about API keys
2. Browser Auth
Say "authenticate with Clear Tangle" to your AI assistant. A browser window opens, you log in, and the token is captured automatically.
3. Credential Auth
Set environment variables for auto-login:
"env": {
"CLEARTANGLE_USERNAME": "your@email.com",
"CLEARTANGLE_PASSWORD": "your-password"
}4. Manual Token/Key
Say "set my Clear Tangle API key to [key]" or "set my Clear Tangle token to [token]" at runtime.
Token Storage
Credentials are stored locally at ~/.clear-tangle-mcp/token.json. JWT tokens expire after 24 hours; API keys persist indefinitely until revoked.
Available Tools (21)
Authentication (7)
authenticateBrowser-based OAuth login
login_with_credentialsEmail/password login
set_api_keySet API key (recommended)
set_tokenManually set JWT token
check_authCheck auth status
test_connectionDiagnose connectivity
logoutClear credentials
Tasks (7)
list_tasksList with filters
get_taskGet task details
create_taskCreate new task
update_taskUpdate task
complete_taskMark complete
delete_taskDelete task
get_tasks_dashboardDashboard view
Thoughts (5)
list_thoughtsList captures
get_thoughtGet capture details
capture_thoughtCreate capture
update_thoughtUpdate capture
delete_thoughtDelete capture
Plans (2)
get_planGet current plan
generate_planGenerate new plan
Example Conversations
Authenticate me with Clear TangleCreate a task called "Review PR #123" with high priorityShow me my tasks for todayCapture this thought: "Remember to update the documentation"Generate a priority plan for the weekWhat tasks are overdue?Mark task xyz-123 as completedSecurity Best Practices
- Use browser-based authentication for interactive use
- Store credentials in secure environment managers, not config files
- Rotate passwords regularly
- Set file permissions: chmod 600 ~/.clear-tangle-mcp/token.json
- Keep MCP configuration files out of version control
Environment Variables
| Variable | Default | Description |
|---|---|---|
CLEARTANGLE_API_KEY | (none) | API key (recommended) |
BACKEND_URL | https://app.cleartangle.com/api | API base URL |
LOGIN_URL | https://app.cleartangle.com/login | Login page URL |
CLEARTANGLE_USERNAME | (none) | Auto-login email |
CLEARTANGLE_PASSWORD | (none) | Auto-login password |