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):
{
"servers": {
"mila": {
"type": "http",
"url": "https://mcp.mila.gg",
"headers": {
"Authorization": "Bearer mila_sk_your_key_here"
}
}
}
}Cursor (.cursor/mcp.json):
{
"mcpServers": {
"mila": {
"url": "https://mcp.mila.gg",
"headers": {
"Authorization": "Bearer mila_sk_your_key_here"
}
}
}
}Claude Code (CLI):
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):
{
"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
| Tool | Description |
|---|---|
list_documents | List all documents with pagination and filtering |
get_document | Get a document by ID with full content |
create_document | Create a new document with HTML content |
update_document | Update title and/or content |
delete_document | Permanently delete a document |
append_to_document | Append HTML to the end of a document |
Sheets
| Tool | Description |
|---|---|
list_sheets | List all workbooks with tab metadata |
get_sheet | Get a workbook with all tabs and cell data |
create_sheet | Create a new workbook with an initial tab |
update_sheet | Update workbook title |
delete_sheet | Delete a workbook and all tabs |
get_sheet_tab | Get a single tab with cell data |
create_sheet_tab | Add a new tab to a workbook |
update_sheet_tab | Update cells, name, color, or grid size |
delete_sheet_tab | Remove a tab from a workbook |
append_rows | Append rows of data to a tab |
Slides
| Tool | Description |
|---|---|
list_slides | List all presentations |
get_slide_presentation | Get a presentation with all slide data |
create_slide_presentation | Create a new presentation |
update_slide_presentation | Update title, slides, theme, or aspect ratio |
delete_slide_presentation | Delete a presentation |
append_slides | Add slides to a presentation |
Other
| Tool | Description |
|---|---|
list_servers | List 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.