MilaMila.gg

Get Started

Core

REST API

Agents

Pricing

Back to Mila
Agents

MCP Server

Connect your documents, sheets, and slides to AI-powered code editors and desktop clients using the Model Context Protocol (MCP).

MCP is an open standard that lets AI assistants interact with external tools. With Mila's MCP server, your AI can list, read, create, update, and delete documents, spreadsheets, and presentations — all in real time.

Quick Start

1. Get an API Key

Create an API key from /api-keys (individual) or /team-api (teams). Make sure it has the scopes you need (e.g. documents:read, documents:write, sheets:read, etc.).

2. Configure Your Client

Add Mila's MCP server to your client's configuration:

VS Code Copilot (.vscode/mcp.json):

JSON
{
  "servers": {
    "mila": {
      "type": "http",
      "url": "https://mcp.mila.gg",
      "headers": {
        "Authorization": "Bearer mila_sk_your_key_here"
      }
    }
  }
}

Cursor (.cursor/mcp.json):

JSON
{
  "mcpServers": {
    "mila": {
      "url": "https://mcp.mila.gg",
      "headers": {
        "Authorization": "Bearer mila_sk_your_key_here"
      }
    }
  }
}

Claude Code (CLI):

bash
claude mcp add mila --transport http --url https://mcp.mila.gg --header "Authorization: Bearer mila_sk_your_key_here"

Claude Desktop (claude_desktop_config.json):

JSON
{
  "mcpServers": {
    "mila": {
      "url": "https://mcp.mila.gg",
      "headers": {
        "Authorization": "Bearer mila_sk_your_key_here"
      }
    }
  }
}

3. Start Using It

Once connected, your AI assistant will discover all available Mila tools automatically. Try asking:

  • "List my documents"
  • "Create a new spreadsheet called Budget Q1"
  • "Add a row to my Sales sheet with Alice, 30, New York"
  • "Get the content of my meeting notes document"
  • "Create a 5-slide presentation about our product launch"

Available Tools

Documents

ToolDescription
list_documentsList all documents with pagination and filtering
get_documentGet a document by ID with full content
create_documentCreate a new document with HTML content
update_documentUpdate title and/or content
delete_documentPermanently delete a document
append_to_documentAppend HTML to the end of a document

Sheets

ToolDescription
list_sheetsList all workbooks with tab metadata
get_sheetGet a workbook with all tabs and cell data
create_sheetCreate a new workbook with an initial tab
update_sheetUpdate workbook title
delete_sheetDelete a workbook and all tabs
get_sheet_tabGet a single tab with cell data
create_sheet_tabAdd a new tab to a workbook
update_sheet_tabUpdate cells, name, color, or grid size
delete_sheet_tabRemove a tab from a workbook
append_rowsAppend rows of data to a tab

Slides

ToolDescription
list_slidesList all presentations
get_slide_presentationGet a presentation with all slide data
create_slide_presentationCreate a new presentation
update_slide_presentationUpdate title, slides, theme, or aspect ratio
delete_slide_presentationDelete a presentation
append_slidesAdd slides to a presentation

Other

ToolDescription
list_serversList all servers (workspaces) you have access to

Authentication

The MCP server uses the same API keys as the REST API. Include your key as a Bearer token in the Authorization header when connecting.

The API key's scopes control which tools are available. For example, a key with only documents:read can use list_documents and get_document but not create_document.