Skip to main content
Glama
Intend.do MCP Server

Intend.do MCP Server

by lydgate
README.md
# Intend.do MCP Server

A [Model Context Protocol (MCP)](https://modelcontextprotocol.io) server that provides AI assistants with access to your Intend.do account, allowing them to help you manage your intentions, track outcomes, and control your timer.

## What is an MCP Server?

An MCP server is an intermediary that allows AI assistants (like Claude in Cursor) to interact with external services through a standardized protocol. This server exposes:

- **Tools**: Actions like adding intentions, completing tasks, starting timers
- **Resources**: Data like today's intentions, goals, timer status
- **Prompts**: (Coming soon) Pre-defined templates for common queries

## Why Build This?

Since you use Intend.do frequently, having an MCP server means you can:

- Ask your AI assistant: "Add 'Review project proposal' to my intentions"
- Get updates: "What's my next action?"
- Track work: "Mark my current task as complete"
- Control timers: "Start a 25-minute pomodoro"

All without leaving your AI chat interface!

## Setup

### 1. Install Dependencies

```bash
npm install
```

### 2. Get Your Auth Token

You need either:
- **Personal auth token** (for testing/personal use): Log in to [intend.do/apiclient/docs](https://intend.do/apiclient/docs) and copy your token
- **OAuth2 access token** (for applications): Follow the [OAuth2 instructions](https://intend.do/apiclient/docs) to create an OAuth2 app

### 3. Configure Authentication

Create a `.env` file in the project root:

```bash
cp .env.example .env
```

Then edit `.env` and add your token:

```bash
# For personal auth token:
INTEND_AUTH_TOKEN=your_auth_token_here

# OR for OAuth2:
INTEND_ACCESS_TOKEN=your_access_token_here
```

**Note:** The `.env` file is already in `.gitignore`, so your token won't be committed. Environment variables (set via `export`) will also work if you prefer that method.

### 4. Build and Run

```bash
npm run build
npm start
```

Or for development:
```bash
npm run dev
```

## Configuration for Cursor/Claude Desktop

Add this to your MCP settings (usually in `~/.config/cursor/mcp.json` or similar):

**Option 1: Using .env file** (recommended - keeps tokens out of config)

If you've set up `.env` in the project directory, the server will automatically load it:

```json
{
  "mcpServers": {
    "intend": {
      "command": "node",
      "args": ["/path/to/intend-mcp/dist/index.js"],
      "cwd": "/path/to/intend-mcp"
    }
  }
}
```

**Option 2: Environment variables in config**

You can also set the token directly in the MCP config:

```json
{
  "mcpServers": {
    "intend": {
      "command": "node",
      "args": ["/path/to/intend-mcp/dist/index.js"],
      "env": {
        "INTEND_AUTH_TOKEN": "your_auth_token_here"
      }
    }
  }
}
```

Or for OAuth2 access token:
```json
{
  "mcpServers": {
    "intend": {
      "command": "node",
      "args": ["/path/to/intend-mcp/dist/index.js"],
      "env": {
        "INTEND_ACCESS_TOKEN": "your_access_token_here"
      }
    }
  }
}
```

## Available Tools

- `get_next_action` - Get what you should do next
- `get_today_data` - Get full today page data
- `get_goals` - List active goals (tasks are assigned to goals, numbers identify goal assignments)
- `add_intention` - Add new intention(s)
- `complete_intention` - Mark an intention complete
- `post_outcome` - Post what you actually did
- `mark_not_today` - Mark intention as "not today"
- `move_to_current` - Move intention to top of list
- `get_timer_status` - Get current timer state
- `start_pomodoro` - Start pomodoro timer
- `start_break` - Start break timer

## Available Resources

- `intend://today/core` - Core today data
- `intend://today/full` - Full today page
- `intend://goals` - Active goals (numbers identify which goals tasks are assigned to)
- `intend://userinfo` - User information

## Example Usage

Once configured, you can ask your AI assistant things like:

- "What's my next action in Intend?"
- "Add 'Write blog post' to my intentions"
- "Mark the current task as complete"
- "What are my active goals?"
- "Start a 25-minute pomodoro"

## Development

```bash
# Watch mode for development
npm run watch

# Run in development mode
npm run dev
```

## API Reference

This server wraps the [Intend.do API](https://intend.do/apiclient/docs). See that documentation for details on the underlying endpoints.

## Security Note

Keep your auth tokens secure! Never commit them to version control. Consider using a secrets manager or environment variable management tool.

## License

MIT

TDQS

A3.8/5.0

Scored across 13 tools

Disambiguation4/5

Most tools target clearly distinct resources/actions, especially the write operations (add, complete, mark not today, move to current, post outcome). There is some overlap between get_today_data and the narrower getters (get_next_action, get_goals, get_timer_status), but the descriptions clarify that get_today_data is a comprehensive snapshot while the others are focused queries.

Naming Consistency5/5

All tools use the same intend_ prefix and snake_case, with predictable verb_noun or verb_action phrasing (get_*, start_*, add_*, complete_*, mark_*, move_*, post_*). The naming is highly consistent and easy to scan.

Tool Count5/5

With 13 tools, the server is well-scoped for a personal productivity assistant covering daily tasks, goals, timers, and weekly review. Each tool has a clear role and there is no obvious padding.

Completeness3/5

Core daily workflows are covered: reading today's data, adding/completing intentions, posting outcomes, reprioritizing, and starting timers. However, there are notable lifecycle gaps: no edit/delete for intentions, no goal creation/update tools, no timer stop/pause/cancel operation, and weekly review is read-only.

Maintenance

ActivityInactive
ResponsivenessNo recent community issues