← All integrations

Asana MCP integration for AI agents

Anlyon's Asana integration gives an AI agent Asana tools over MCP or through Anlyon's API: it can read projects and tasks, and create, update, comment on and complete tasks. Each of your users connects their own Asana account with a key they create in Asana, and your company's account connects the same way. Your agent calls each action by name and never holds the key.

Let an agent run the follow-ups without rewriting the plan. It reads projects and tasks, creates, updates and comments under a daily limit, and completing or deleting a task can wait for a person.

Asanasecret · ASANA
host
app.asana.com
connect
API key, per user
  • Create task

    asana-create-task

  • Comment on task

    asana-comment-on-task

  • Complete task

    asana-complete-task

  • Reopen task

    asana-reopen-task

writes are off until switched on

What can an AI agent do in Asana? Writes are off until you switch them on.

Each one is a named operation from the pack. Reads change nothing.

Writes

  • Create task

    read back

    asana-create-task

    Create one task in a project, with a name and notes.

  • Comment on task

    read back

    asana-comment-on-task

    Add one comment to a task.

  • Complete task

    read back

    asana-complete-task

    Mark one task complete.

  • Reopen task

    read back

    asana-reopen-task

    Mark one completed task incomplete.

  • Update task

    read back

    asana-update-task

    Change one task's name, notes, due date (YYYY-MM-DD) or assignee ("me", a user gid or an email); only the fields given change.

  • Create subtask

    read back

    asana-create-subtask

    Create one subtask under a task, with a name and optional notes, assignee ("me", a user gid or an email) and due date.

  • Add task to section

    read back

    asana-add-task-to-section

    Move one task into a section of a project it is already in, at the top of the section; Asana removes it from the project's other sections.

  • Add follower

    acknowledged

    asana-add-follower

    Add one follower ("me", a user gid or an email) to a task. A follower is notified of changes and can see the task even outside its projects.

  • Remove follower

    acknowledged

    asana-remove-follower

    Remove one follower ("me", a user gid or an email) from a task.

  • Add tag

    read back

    asana-add-tag

    Add one existing tag (by gid, from list-tags) to a task.

  • Remove tag

    read back

    asana-remove-tag

    Remove one tag (by gid) from a task.

  • Delete task

    acknowledged

    asana-delete-task

    Delete one task (or subtask). Asana moves it to the deleting user's trash, where it can be restored in the Asana app for 30 days.

  • Create section

    read back

    asana-create-section

    Create one section in a project.

  • Delete section

    acknowledged

    asana-delete-section

    Delete one empty section. Asana refuses a section that still has tasks, and the last section of a project.

Reads

  • List workspaces

    asana-list-workspaces

    List the workspaces and organizations the token can reach, 25 per page, with each one's gid and name. Asana returns next_page.offset when there are more; pass it as offset for the next page.

  • List projects

    asana-list-projects

    List the projects in one workspace, 25 per page, with name, archived, team and permalink. Pass archived=false to leave archived projects out. Asana returns next_page.offset when there are more; pass it as offset for the next page. Asana warns this can time out in very large organizations.

  • Get project

    asana-get-project

    Get one project: name, notes, owner, team, workspace, dates, archived and completed state, the latest status update's title, and its permalink.

  • List sections

    asana-list-sections

    List the sections of one project, 50 per page, with each one's gid and name, in project order. Asana returns next_page.offset when there are more; pass it as offset for the next page.

  • List project tasks

    asana-list-project-tasks

    List the tasks in one project, 25 per page, with name, completed, assignee, due date and permalink. Pass completed_since=now for incomplete tasks only (or an ISO 8601 date-time for tasks incomplete or completed since then). Asana returns next_page.offset when there are more; pass it as offset for the next page.

  • List section tasks

    asana-list-section-tasks

    List the tasks in one section, 25 per page, with name, completed, assignee, due date and permalink. Pass completed_since=now for incomplete tasks only. Asana returns next_page.offset when there are more; pass it as offset for the next page. Asana's reference labels this endpoint "board view only"; if it fails for a list-view project, use list-project-tasks.

  • Get task

    asana-get-task

    Get one task: name, notes, completed state, assignee, dates, parent, projects and sections, tags, followers, number of subtasks and permalink. Notes are returned in full; a very long task can be cut at 64 KB.

  • List subtasks

    asana-list-subtasks

    List the subtasks of one task, 25 per page, with name, completed, assignee, due date and permalink. Asana returns next_page.offset when there are more; pass it as offset for the next page.

  • List task stories

    asana-list-task-stories

    List a task's stories (comments and activity such as assignments and due-date changes), 20 per page, oldest first, with text, author, type and time. Pass resource_subtype=comment_added for comments only, and sort_ascending=false for newest first. Asana returns next_page.offset when there are more; pass it as offset for the next page.

  • List tags

    asana-list-tags

    List the tags in one workspace, 50 per page, with each one's gid, name and color. Asana returns next_page.offset when there are more; pass it as offset for the next page.

How do users connect? Each one brings their own Asana.

  1. 1.Call for the userYour server invokes the action for the signed-in user. Without a Asana connection, the SDK throws EndUserNotConnectedError with a connect link.
  2. 2.The user pastes a keyThe link opens a form that shows where in Asana's settings to create the key. The link lasts 10 minutes and works once.
  3. 3.Anlyon checks itThe key is checked with Asana before it is kept, and bound to app.asana.com. It is never shown back.
  4. 4.Your server confirmsYour server confirms the connection for the user who is signed in, and the call goes through.

How do I control what an AI agent does in Asana? Suggested limits and approvals, for you to review.

Suggested limits

  • 100 tasks created a day
  • 300 comments a day
  • 100 tasks completed a day
  • 100 tasks reopened a day
  • 200 task updates a day
  • 100 subtasks created a day
  • 200 tasks moved to a section a day
  • 50 followers added a day
  • 50 followers removed a day
  • 200 tags added a day
  • 200 tags removed a day
  • 20 tasks deleted a day
  • 20 sections created a day
  • 20 sections deleted a day

Suggested approvals

  • A person approves completing a task
  • A person approves deleting a task
  • A person approves deleting a section
  • A person approves adding a follower
  • A person approves removing a follower

What the key must allow

  • A personal access token you create
  • It acts as the person who made it, so use an account limited to the right projects

Good to know

  • The token can do whatever its owner can do in Asana. The daily limits and the approval rule are what narrow the agent.
  • Asana has no idempotency key for these writes. Anlyon sends each one once and never repeats it.

For your own account

  1. 1.In Asana, open the developer console and create a personal access token.
  2. 2.In Anlyon, open Actions, then Integrations, choose Asana and paste the token.
  3. 3.Anlyon checks the token with Asana before storing it. It becomes a secret named ASANA, bound to app.asana.com.
  4. 4.Have the id of the project your agent should add tasks to. It is the number in the project's URL.

How do I call Asana from my agent's code? For one of your users, or for your own account.

Act for one of your users from your server, or connect your company's own Asana with the CLI.

asana.ts
import { Client, EndUserNotConnectedError } from "@anlyonhq/sdk";const anlyon = new Client({ apiKey: process.env.ANLYON_API_KEY! });try {  const { data } = await anlyon    .forUser(session.userId)    .actions.invoke("asana-create-task", {      project_gid: "1208801234567890",      name: "Follow up with Acme",      notes: "They asked for the security review."    });  return { status: "done", grade: data.grade };} catch (error) {  if (error instanceof EndUserNotConnectedError) {    // The user connects their own Asana, then you call again.    return { status: "connect_required", url: error.connectUrl };  }  throw error;}

Questions. Asana and AI agents.

Anything still unanswered is worth an email.

support@anlyon.com

Email us

Connect a Asana account in Anlyon, switch on the operations the agent may use, and call them from the TypeScript or Python SDK or over MCP. Each of your users connects their own account through a connect link, where they paste a key they create in Asana. Your agent sees the operations by name and never sees the credential.

Through Anlyon it can read projects and tasks, and create, update, comment on and complete tasks. Reads change nothing. Writes are off until you switch them on, and every write leaves a receipt.

Yes. Every Asana action you enable is also an MCP tool on Anlyon's hosted MCP server, at https://api.anlyon.com/mcp. Add that address to Claude Code, Cursor or Codex and sign in. It is Anlyon's own integration, and it calls Asana's API with the key Anlyon holds.

No. The key stays with Anlyon and is sent only in the request to Asana's API. No API returns it, to you, to the console or to an agent.

Let your agent act for your users, safely.

A few lines of server code, then send a user a connect link. Nothing to host.

$ claude mcp add --transport http anlyon https://api.anlyon.com/mcp