Asana MCP server

Integrates with Asana to enable task automation, project tracking, and team collaboration through the Asana API.
Back to servers
Provider
Christian Roy
Release date
Dec 04, 2024
Language
TypeScript
Package
Stats
4.0K downloads
85 stars

This MCP server for Asana enables you to interact with the Asana API directly from MCP clients like Claude Desktop and other applications supporting the Model Context Protocol. It allows you to query and manage tasks, projects, workspaces, and comments in your Asana workspace.

Installation and Setup

Prerequisites

  1. Create an Asana account:

    • Visit Asana
    • Click "Sign up"
  2. Generate an Asana Access Token:

Installation Options

For Claude Desktop

Add the following to your claude_desktop_config.json:

{
  "mcpServers": {
    "asana": {
      "command": "npx",
      "args": ["-y", "@roychri/mcp-server-asana"],
      "env": {
        "ASANA_ACCESS_TOKEN": "your-asana-access-token"
      }
    }
  }
}

For Claude Code

Use the following command to install and configure the MCP server:

claude mcp add asana -e ASANA_ACCESS_TOKEN=<TOKEN> -- npx -y @roychri/mcp-server-asana

Replace <TOKEN> with your Asana access token.

Environment Variables

  • ASANA_ACCESS_TOKEN: (Required) Your Asana access token
  • READ_ONLY_MODE: (Optional) Set to 'true' to disable all write operations, allowing only read operations

Usage

To use the MCP server in your AI tool of choice (e.g., Claude Desktop), simply ask questions about your Asana tasks, projects, workspaces, or comments. Including the word "asana" in your queries will help the AI select the right tool.

Example Queries

  • "How many unfinished asana tasks do we have in our Sprint 30 project?"
  • "Show me all the tasks assigned to me in the Marketing project"
  • "Create a new task in the Development project with a deadline of next Friday"
  • "What are the comments on the website redesign task?"

Available Tools

Workspace Management

  • asana_list_workspaces: Lists all available workspaces in Asana

Project Management

  • asana_search_projects: Search for projects by name pattern
  • asana_get_project: Get detailed information about a specific project
  • asana_get_project_task_counts: Get the number of tasks in a project
  • asana_get_project_sections: Get sections in a project
  • asana_get_project_status: Get a project status update
  • asana_get_project_statuses: Get all status updates for a project
  • asana_create_project_status: Create a new status update for a project
  • asana_delete_project_status: Delete a project status update

Task Management

  • asana_search_tasks: Search tasks with advanced filtering options
  • asana_get_task: Get detailed information about a specific task
  • asana_create_task: Create a new task in a project
  • asana_update_task: Update an existing task's details
  • asana_get_task_stories: Get comments and stories for a specific task
  • asana_create_task_story: Create a comment or story on a task
  • asana_add_task_dependencies: Set dependencies for a task
  • asana_add_task_dependents: Set dependents for a task
  • asana_create_subtask: Create a new subtask for an existing task
  • asana_get_multiple_tasks_by_gid: Get information about multiple tasks by GIDs
  • asana_set_parent_for_task: Set the parent of a task and position the subtask

Tag Management

  • asana_get_tasks_for_tag: Get tasks for a specific tag
  • asana_get_tags_for_workspace: Get tags in a workspace

Special Prompts

The server includes pre-built prompts for common scenarios:

  1. task-summary: Get a summary and status update for a task based on its notes, custom fields, and comments
  2. task-completeness: Analyze if a task description contains all necessary details for completion
  3. create-task: Create a new task with specified details

Troubleshooting

If you encounter permission errors:

  1. Ensure your Asana plan allows API access
  2. Confirm the access token and configuration are correctly set in your configuration
  3. If using READ_ONLY_MODE, remember that write operations will be disabled

Using Beta Versions

If you want to install the beta version (not yet released), you can use:

# For Claude Desktop, modify the args in claude_desktop_config.json:
"args": ["-y", "@roychri/mcp-server-asana@beta"]

# For Claude Code:
claude mcp add asana -e ASANA_ACCESS_TOKEN=<TOKEN> -- npx -y @roychri/mcp-server-asana@beta

You can find the current beta release, if any, with:

How to add this MCP server to Cursor

There are two ways to add an MCP server to Cursor. The most common way is to add the server globally in the ~/.cursor/mcp.json file so that it is available in all of your projects.

If you only need the server in a single project, you can add it to the project instead by creating or adding it to the .cursor/mcp.json file.

Adding an MCP server to Cursor globally

To add a global MCP server go to Cursor Settings > MCP and click "Add new global MCP server".

When you click that button the ~/.cursor/mcp.json file will be opened and you can add your server like this:

{
    "mcpServers": {
        "cursor-rules-mcp": {
            "command": "npx",
            "args": [
                "-y",
                "cursor-rules-mcp"
            ]
        }
    }
}

Adding an MCP server to a project

To add an MCP server to a project you can create a new .cursor/mcp.json file or add it to the existing one. This will look exactly the same as the global MCP server example above.

How to use the MCP server

Once the server is installed, you might need to head back to Settings > MCP and click the refresh button.

The Cursor agent will then be able to see the available tools the added MCP server has available and will call them when it needs to.

You can also explictly ask the agent to use the tool by mentioning the tool name and describing what the function does.

Want to 10x your AI skills?

Get a free account and learn to code + market your apps using AI (with or without vibes!).

Nah, maybe later