The Upstage MCP Server provides a robust bridge between AI assistants and Upstage AI's powerful document processing APIs. This server enables AI modelsโsuch as Claudeโto effortlessly extract and structure content from various document types including PDFs, images, and Office files.
Key Features
- Document Parsing: Extract structured content from documents while preserving layout
- Information Extraction: Retrieve specific data points using intelligent, customizable schemas
- Multi-format Support: Handles JPEG, PNG, BMP, PDF, TIFF, HEIC, DOCX, PPTX, and XLSX
- Claude Desktop Integration: Effortless integration with Claude and other MCP clients
Prerequisites
Before using this server, ensure you have the following:
- Upstage API Key: Obtain your API key from Upstage Console
- Python 3.10+: The server requires Python version 3.10 or higher
- Astral UV: The MCP server relies upon Astral UV to run, please install UV
Installation & Configuration
Install the package
Using uv (Recommended):
No additional installation is required when using uvx as it handles execution automatically.
Configure Claude Desktop
For integration with Claude Desktop, add the following content to your claude_desktop_config.json:
Configuration Location:
- Windows:
%APPDATA%\Claude\claude_desktop_config.json - macOS:
~/Library/Application Support/Claude/claude_desktop_config.json
Using uvx Command (Recommended):
If uvx is not available globally, you may encounter a Server disconnected error. To resolve this, run which uvx to find its full path, and replace "command": "uvx" above with the returned path.
After adding the configuration, restart Claude Desktop to apply the changes.
Output Directories
Processing results are stored in your home directory under:
- Document Parsing Results:
~/.mcp-upstage/outputs/document_parsing/ - Information Extraction Results:
~/.mcp-upstage/outputs/information_extraction/ - Generated Schemas:
~/.mcp-upstage/outputs/information_extraction/schemas/
Local Development Setup
Follow these steps to set up and run the project locally:
Configure Claude Desktop for Local Testing
-
Download Claude Desktop: Download Claude Desktop
-
Open and Edit Configuration:
- Navigate to Claude โ Settings โ Developer โ Edit Config
- Edit the
claude_desktop_config.jsonfile with the following configurations:
For Windows:
Replace
C:\\path\\to\\cloned\\mcp-upstagewith your actual repository path.For macOS/Linux:
Replace:
/Users/username/.local/bin/uvwith the output ofwhich uv/path/to/cloned/mcp-upstagewith the absolute path to your local clone
After configuring, restart Claude Desktop.
Available Tools
The server exposes two primary tools for AI models:
Document Parsing (parse_document)
- Description: Processes documents and extracts content while preserving structure
- Parameters:
file_pathโ the path to the document to be processedoutput_formats(optional) โ output formats to return (e.g.,html,text,markdown)mode(defaultstandard) โ parsing mode.standardis fast and cost-efficient for ordinary text-centric documents.enhancedis for complex tables, charts, handwriting, or low-quality scans; it costs more per page and is slower.autolets the API decide per page whether enhanced processing is neededocr(defaultforce) โ OCR mode.forcealways runs OCR;autouses the embedded text of digital documents and runs OCR only when neededmodel(defaultdocument-parse) โ Document Parse model name. The defaultdocument-parseuses the latest version; specify a dated version such asdocument-parse-260930to pin it
- Note: The response ends with a
Processed by <model> | usage: {...}line showing the model and the mode actually applied - Example Query: "Can you parse the document at
C:\Users\username\Documents\contract.pdfand provide a summary?"
Information Extraction (extract_information)
- Description: Extracts structured information from documents based on predefined or auto-generated schemas
- Parameters:
file_pathโ the document file pathschema_path(optional) โ a JSON file with an extraction schemaschema_json(optional) โ an extraction schema as a JSON stringauto_generate_schema(default true) โ whether to auto-generate a schema
- Example Query: "Extract the invoice number, date, and total from
C:\Users\username\Documents\invoice.pdf."
Troubleshooting
For troubleshooting, view the server logs at:
- Windows:
%APPDATA%\Claude\logs\mcp-upstage.log - macOS:
~/Library/Logs/Claude/mcp-upstage.log
Counting tokens
Estimate token usage before calling the API. Upstage helps developers optimize cost and prompt design with clear token counts.
Regional endpoints
Process data inside Korea with the kr.api.upstage.ai endpoint โ supported models, how to switch, and how it differs from the global region.