Skip to main content
Glama
Anchorly MCP Server

Anchorly MCP Server

🌐 Language / Dil: English | Türkçe

Anchorly MCP server

CI Node.js MCP Vitest

A Model Context Protocol server for Anchorly, a task and habit dashboard. It lets Claude Code, or any other MCP client, read and add tasks, complete them, and read projects, daily routines and the calendar of an Anchorly account. It talks to the Anchorly API with a personal access token and runs locally over stdio.


Tools

Tool

What it does

API call

Scope

list_tasks

Tasks filtered by date range, status (open, completed, all) and project

GET /tasks

tasks:read

get_today

The Today page: tasks for the day, open tasks from earlier days, routines with today's checks

GET /tasks, GET /routines, /routines/checks

tasks:read, routines:read

get_calendar

Dated tasks grouped by day for up to 62 days (Anchorly's calendar is built from task dates)

GET /tasks

tasks:read

create_task

Add a task with title, date, time, category, project, description, importance and steps

POST /tasks

tasks:write

update_task

Change some fields of a task; null clears the date, time or project

PATCH /tasks/{id}

tasks:write

complete_task

Mark a task as done, or open it again

GET /tasks, PATCH /tasks/{id}

tasks:read, tasks:write

list_projects

Projects with their ids

GET /projects

projects:read

list_routines

Daily routines and whether each is checked on a day

GET /routines, GET /routines/checks

routines:read

Project names are added to task results when the token has projects:read; without it, task tools still work. Every input is validated with Zod before a request is sent.

There is no delete tool. Deleting stays in the app, so a model cannot remove data by mistake.


Related MCP server: Todoist MCP Server

Requirements

  • Node.js 22 or newer

  • An Anchorly account


Quick setup: Connect to Claude

  1. Sign in to Anchorly and open Settings > Access tokens.

  2. Select Connect to Claude. Anchorly creates a token named Claude with the scopes these tools use and shows a ready command with the token in it:

    claude mcp add anchorly -s user -e ANCHORLY_TOKEN=anc_your_token -- npx -y github:berkaycinar-dev/anchorly-mcp
  3. Paste the command into a terminal. The Claude Desktop tab shows the same setup as an mcpServers block for claude_desktop_config.json.

The command is shown only once, and it contains the token: keep it private. If a Claude token already exists, the button offers to create it again and revokes the old one.

Manual setup

1. Create a token

  1. In Settings > Access tokens, enter a name (for example Claude Code), keep the scopes you need and choose a lifetime.

  2. Select Create token and copy the token. It starts with anc_ and is shown only once; Anchorly keeps only its hash.

A token can be revoked on the same page at any time. It cannot change the account, password, sessions or settings, and it cannot create other tokens.

2. Add the server to Claude Code

Straight from GitHub with npx (the package is not published to npm; there is no build step):

claude mcp add anchorly -s user \
  -e ANCHORLY_TOKEN=anc_your_token \
  -- npx -y github:berkaycinar-dev/anchorly-mcp

Or from a clone:

git clone https://github.com/berkaycinar-dev/anchorly-mcp.git
cd anchorly-mcp
npm install --omit=dev
claude mcp add anchorly -s user \
  -e ANCHORLY_TOKEN=anc_your_token \
  -- node /path/to/anchorly-mcp/src/index.js

On Windows, start npx through cmd: -- cmd /c npx -y github:berkaycinar-dev/anchorly-mcp.

-s user makes the server available in every project; leave it out to add it only to the current one. Check the connection with claude mcp list, or /mcp inside Claude Code. Then ask, for example: "What is on my Anchorly list today?" or "Add a task to call the dentist tomorrow at 9:15".

Claude Desktop

Add this to claude_desktop_config.json (Settings > Developer > Edit Config) and restart the app:

{
  "mcpServers": {
    "anchorly": {
      "command": "npx",
      "args": ["-y", "github:berkaycinar-dev/anchorly-mcp"],
      "env": { "ANCHORLY_TOKEN": "anc_your_token" }
    }
  }
}

The token is stored in the client's MCP configuration. Treat that file like a password, and revoke the token in Anchorly if it leaks.


Configuration

Variable

Required

Description

ANCHORLY_TOKEN

Yes

Personal access token that starts with anc_

ANCHORLY_API_URL

No

Only for a self-hosted Anchorly API, for example https://your-anchorly-api.example.com. Default: Anchorly's live API

ANCHORLY_TIMEOUT_MS

No

Time to wait for one API answer, 1000 to 300000. Default 90000 (90 seconds)

See .env.example. The server reads only the environment; it does not load a .env file.


Behaviour

  • Slow first request: an API on a free hosting plan can sleep and take up to a minute to answer the first request. The server waits up to 90 seconds and tries once more after a timeout, a network error or a 502, 503 or 504. Repeating a request is safe: new tasks carry an id generated here, so a repeated create returns the same task, and updates set absolute values.

  • Today: the local date of the machine running the server, unless a tool gets a date.

  • Same rules as the app: new tasks are ordered by creation time, get_today shows what the Today page shows, and completing a task records the task's date (or today for undated tasks) as its completion date. Write requests send X-Client-Time, so the API's last-write-wins rule compares them with edits from the app.

  • Clear errors: an invalid or revoked token, a missing scope, a missing task, a rate limit or an unreachable API each produce a short message that says what to do. The token never appears in messages; stdout carries only the MCP protocol and status lines go to stderr.

  • Repeating tasks: create_task creates one-off tasks. Repeating tasks are set up in the app.


Development

npm install
npm test          # Vitest; every tool is checked against a mocked fetch
npm run lint
npm run format:check

Tests connect a real MCP client to the server in memory and check the HTTP requests each tool sends.

src/
β”œβ”€β”€ index.js      entry point: reads the environment, starts the stdio transport
β”œβ”€β”€ server.js     creates the MCP server
β”œβ”€β”€ tools.js      tool definitions and input schemas
β”œβ”€β”€ apiClient.js  HTTP client: token, timeout, one retry, readable errors
β”œβ”€β”€ tasks.js      filtering, sorting and the Today rule
└── config.js     environment variables
test/             tests and helpers

License

MIT

Available Tools

8 tools
complete_taskComplete a taskA
Idempotent

Mark a task as done (or open again with completed: false). Like the app, the completion date is the task's date, or today for undated tasks.

Inputs: id (required), completed.

create_taskCreate a taskA

Add a task to Anchorly. Without a date it appears on the Today page (or only in its project when projectId is set).

Inputs: title (required), date, steps, dueTime, +4 more.

get_calendarCalendarA
Read-only

Tasks grouped by day for a date range, as on the Calendar page (Anchorly's calendar shows dated tasks). Includes completed tasks. At most 62 days.

Inputs: to (required), from (required).

get_todayToday in AnchorlyA
Read-only

The tasks shown on the Today page (dated today, plus undated tasks outside projects), open tasks from earlier days, and the daily routines with today's check marks. Today is the local date of the machine running this server unless date is given.

Inputs: date.

list_projectsList projectsA
Read-only

List the user's projects with their ids, to filter or assign tasks.

Inputs: no named parameters.

list_routinesList daily routinesA
Read-only

List the user's daily routines in display order and whether each is checked on a day (today by default).

Inputs: date.

list_tasksList tasksA
Read-only

List the user's Anchorly tasks, sorted by date and time. Filter by a date range (tasks without a date are left out when a range is given), status and project.

Inputs: to, from, status, projectId.

update_taskUpdate a taskA
Idempotent

Change fields of a task. Only the given fields change. Use null to clear date, dueTime or projectId. To mark a task done, use complete_task.

Inputs: id (required), date, title, dueTime, +4 more.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.9/5.0

    Scored across 8 tools

    Disambiguation4/5

    Most tools have clearly distinct purposes: reads (list_projects, list_routines, list_tasks), aggregate views (get_today, get_calendar), and writes (create_task, update_task, complete_task). The explicit cross-reference that complete_task handles completion while update_task handles field edits resolves the one obvious overlap. Minor residual overlap remains between list_tasks and the get_today/get_calendar views, but descriptions make the intended use of each reasonably clear.

    Naming Consistency5/5

    All eight tools follow a strict verb_noun snake_case pattern: complete_task, list_projects, list_routines, list_tasks, get_today, get_calendar, create_task, update_task. The verbs are used consistently by intent (list_ for enumerations, get_ for composed views), with no mixed conventions.

    Tool Count5/5

    Eight tools is well within the ideal 3-15 range and each earns its place: three list reads, two page-style aggregate reads, and three task mutations. No obviously redundant or trivial tool is included for the scope of a task-management server.

    Completeness3/5

    Task lifecycle is partly covered (create, update, complete) but there is no delete_task, leaving a real dead end for removing tasks. Projects and routines are read-only with no create/update or routine check/uncheck operation, so agents cannot manage those entities even though the server surfaces them.

    Maintenance

    ActivityMaintained
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      Not graded
      quality
      D
      maintenance
      Enables authenticated MCP clients to manage projects, tasks, habits, and daily capacity through tool calls.
      -
    • A
      license
      A
      quality
      C
      maintenance
      Enables AI assistants to browse task groups, list open or completed todos, create new tasks, mark them done, and update their content or status through a token-authenticated MCP connection.
      5
      MIT
    • A
      license
      Not graded
      quality
      C
      maintenance
      Lets Claude, Cursor, Codex, and other MCP-compatible apps list, search, add, update, complete, and delete your tasks, with changes syncing to the iPhone, Mac, and web apps.
      46 npm
      MIT