Miro MCP Server

Local setup required. This server has to be cloned and prepared on your machine before you register it in Claude Code.
1

Set the server up locally

Run this once to clone and prepare the server before adding it to Claude Code.

Run in terminal
pip install -r requirements.txt
2

Register it in Claude Code

After the local setup is done, run this command to point Claude Code at the built server.

Run in terminal
claude mcp add -e "MIRO_CLIENT_ID=${MIRO_CLIENT_ID}" -e "MIRO_CLIENT_SECRET=${MIRO_CLIENT_SECRET}" -e "MIRO_REDIRECT_URL=${MIRO_REDIRECT_URL}" miro-mcp -- python "<FULL_PATH_TO_MIRO_MCP>/dist/index.js"

Replace <FULL_PATH_TO_MIRO_MCP>/dist/index.js with the actual folder you prepared in step 1.

Required:MIRO_CLIENT_IDMIRO_CLIENT_SECRETMIRO_REDIRECT_URL
README.md

Enables MCP-compatible LLMs to interact with Miro whiteboards

Miro MCP Server

A standalone Model Context Protocol (MCP) server that enables any MCP-compatible LLM to interact with Miro whiteboards

Prerequisites

  • Python 3.9 or higher
  • Miro Developer Account with Client ID and Client Secret
  • MCP-compatible LLM client

Setup

  1. Clone this repository or navigate to the project directory:
cd miro-mcp
  1. Create a virtual environment:
python -m venv venv
source venv/bin/activate
  1. Install dependencies:
pip install -r requirements.txt

Configuration

  1. Create a .env file in the project root with your Miro credentials:
MIRO_CLIENT_ID=your_client_id_here
MIRO_CLIENT_SECRET=your_client_secret_here
MIRO_REDIRECT_URL=http://localhost:8080/callback

Available Tools

Authentication Tools

  • get_auth_url: Get the OAuth 2.0 authorization URL

    • Parameters: None
    • Returns: Authorization URL and instructions
  • exchange_auth_code: Exchange authorization code for access token

    • Parameters:
      • code (string, required): Authorization code from OAuth callback
    • Returns: Success status

Board Management Tools

  • get_board: Get information about a Miro board including metadata, name, description, and settings
    • Parameters:
      • board_id (string, required): The ID of the board
    • Returns: Board information

Shape Manipulation Tools

  • create_shape: Create a shape on a board

    • Parameters:
      • board_id (string, required): The ID of the board
      • shape_type (string, required): Type of shape (rectangle, circle, triangle, star, arrow, rhombus, octagon, hexagon)
      • x (number, required): X coordinate of the shape position
      • y (number, required): Y coordinate of the shape position
      • width (number, required): Width of the shape
      • height (number, required): Height of the shape
      • fillColor (string, optional): Fill color in hex format (e.g., #FF0000)
      • borderColor (string, optional): Border color in hex format (e.g., #000000)
      • borderWidth (number, optional): Border width in pixels
      • content (string, optional): Text content to display in the shape
    • Returns: Created shape information
  • update_shape: Update properties of an existing shape

    • Parameters:
      • board_id (string, required): The ID of the board
      • item_id (string, required): The ID of the shape item to update
      • x (number, optional): New X coordinate
      • y (number, optional): New Y coordinate
      • width (number, optional): New width
      • height (number, optional): New height
      • fillColor (string, optional): New fill color
      • borderColor (string, optional): New border color
      • borderWidth (number, optional): New border width
      • content (string, optional): New text content
    • Returns: Updated shape information
  • delete_shape: Delete a shape from a board

    • Parameters:
      • board_id (string, required): The ID of the board
      • item_id (string, required): The ID of the shape item to delete
    • Returns: Success message

Grouping Tools

  • group_shapes: Group multiple shapes together

    • Parameters:
      • board_id (string, required): The ID of the board
      • item_ids (array, required): List of item IDs to group together (minimum 2 items)
    • Returns: Group/frame information
  • ungroup_shapes: Ungroup shapes by removing them from a group/frame

    • Parameters:
      • board_id (string, required): The ID of the board
      • group_id (string, required): The ID of the group/frame to ungroup
    • Returns: Success message

Usage

Running the MCP Server

The MCP server communicates via stdio using JSON-RPC protocol. To run it:

python server.py

Authentication

Before using the MCP server to interact with Miro boards, you need to authenticate and obtain an access token:

Step 1: Get Authorization URL

Call the get_auth_url tool to retrieve the OAuth authorization URL:

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "get_auth_url",
    "arguments": {}
  }
}

The response will contain an auth_url that you need to visit in your browser.

Step 2: Authorize the Application
  1. Copy the auth_url from the response
  2. Open it in your web browser
  3. Log in to your Miro account
  4. Review and approve the permissions requested by the application
  5. After authorization, Miro will redirect you to the callback URL specified in your configuration
Step 3: Extract the Authorization Code

After authorization, Miro redirects to your callback URL with a code parameter in the query string. The URL will look like:

http://localhost:8080/callback?code=AUTHORIZATION_CODE_HERE

Extract the code value from the URL (everything after code=).

Step 4: Exchange Code for Access Token

Use the exchange_auth_code tool with the authorization code to complete authentication:

{
  "jsonrpc": "2.0",

Tools (8)

get_auth_urlGet the OAuth 2.0 authorization URL
exchange_auth_codeExchange authorization code for access token
get_boardGet information about a Miro board including metadata, name, description, and settings
create_shapeCreate a shape on a board
update_shapeUpdate properties of an existing shape
delete_shapeDelete a shape from a board
group_shapesGroup multiple shapes together
ungroup_shapesUngroup shapes by removing them from a group/frame

Environment Variables

MIRO_CLIENT_IDrequiredMiro Developer Account Client ID
MIRO_CLIENT_SECRETrequiredMiro Developer Account Client Secret
MIRO_REDIRECT_URLrequiredOAuth callback URL

Configuration

claude_desktop_config.json
{"mcpServers": {"miro": {"command": "python", "args": ["/path/to/miro-mcp/server.py"], "env": {"MIRO_CLIENT_ID": "your_client_id", "MIRO_CLIENT_SECRET": "your_client_secret", "MIRO_REDIRECT_URL": "http://localhost:8080/callback"}}}}

Try it

Create a new rectangle shape on board ID 123 at coordinates 100, 100 with the text 'Project Roadmap'.
Get the details for board ID 456 to see its current metadata.
Group the shapes with IDs 789 and 101 on board 123.
Update the shape with ID 555 on board 123 to change its fill color to blue.

Frequently Asked Questions

What are the key features of Miro MCP Server?

OAuth 2.0 authentication flow for secure board access. Retrieve board metadata and settings. Create and manipulate various shape types including rectangles, circles, and arrows. Group and ungroup items on the whiteboard. Update existing shape properties like position, size, and content.

What can I use Miro MCP Server for?

Automating the creation of whiteboard diagrams from project requirements. Programmatically organizing brainstorming session outputs into groups. Updating whiteboard content based on external data changes. Managing large-scale whiteboard layouts via natural language commands.

How do I install Miro MCP Server?

Install Miro MCP Server by running: pip install -r requirements.txt

What MCP clients work with Miro MCP Server?

Miro MCP Server works with any MCP-compatible client including Claude Desktop, Claude Code, Cursor, and other editors with MCP support.

Turn this server into reusable context

Keep Miro MCP Server docs, env vars, and workflow notes in Conare so your agent carries them across sessions.

Need the old visual installer? Open Conare IDE.
Open Conare