UNS-MCP is an MCP server implementation for interacting with the Unstructured API, managing data sources, destinations, and workflows. This server is not actively maintained and is retained here for reference only. If you need to parse and convert files into structured output (markdown, JSON, HTML, or plain text), the official recommendation is to use the Unstructured Transform MCP server instead.
Main capabilities: This server provides tools for listing data sources and workflows. The currently supported connector is Firecrawl Source. To use the tools for creating, updating, or deleting connectors, the credentials for that connector must be defined in the .env file.
Firecrawl Source: Firecrawl is a web scraping API that provides two main capabilities in MCP. First, HTML content retrieval, using invoke_firecrawl_crawlhtml to start a crawl task, check_crawlhtml_status to monitor the task, and cancel_crawlhtml_job to cancel the task if necessary. Second, LLM-optimized text generation, using invoke_firecrawl_llmtxt to generate text and check_llmtxt_status to get the results. Its web crawling process starts from a specified URL and analyzes it to identify links; if a sitemap exists, it uses the sitemap; otherwise, it follows links on the website, recursively traverses each link to discover all subpages, collects the content of each visited page, and handles JavaScript rendering and rate limiting. LLM text generation extracts clean, meaningful text content from pages after crawling, generating optimized text specifically formatted for large language models, and the results are automatically uploaded to the specified S3 location. Note: Once an LLM text generation task starts, it cannot be canceled. The cancel_llmtxt_job function is provided for consistency, but the current Firecrawl API does not support it. To use these features, the FIRECRAWL_API_KEY environment variable must be set.
Installation and configuration: Python 3.12 and the uv tool are required for environment management, and an API key must be obtained from Unstructured. uv is recommended, and uvx will automatically handle execution without additional installation. For Claude Desktop integration, add the configuration in claude_desktop_config.json, which is located in the ~/Library/Application Support/Claude/ directory. It can also be used via the uvx command or as a Python package. When using the source code method, first clone the repository, run uv sync to install dependencies, and create a .env file in the root directory with the content UNSTRUCTURED_API_KEY="YOUR_KEY". You can refer to .env.template to learn about the configurable environment variables.
The server supports the stdio and SSE protocols. For the SSE protocol, you can first start the server in one terminal (uv run python uns_mcp/server.py --host 127.0.0.1 --port 8080 or make sse-server), then test it in another terminal with a local client (uv run python minimal_client/client.py "http://127.0.0.1:8080/sse" Or make sse-client). When stopping the service, first press Ctrl+C on the client, then stop the server.
Local client configuration: A minimal client can be configured using environment variables. LOG_LEVEL="ERROR" can suppress the LLM's debug output and display clear messages; CONFIRM_TOOL_USE='false' can disable tool use confirmation before execution. Use with caution, especially during development, because the LLM may execute expensive workflows or delete data. Anthropic provides the MCP Inspector tool for debugging and testing MCP servers. You can add environment variables in the left pane (pointing to the local environment), fill in your personal API key, and then test the added capabilities in tools. If you need to log the request call parameters of UnstructuredClient, you can set DEBUG_API_REQUESTS=false. Logs are stored in the format unstructured-client-{date}.log.
You can add terminal access to the minimal client via @wonderwhy-er/desktop-commander. It is built on the MCP Filesystem Server. Note that the client (and the LLM) will be able to access private files.
When using a subset of tools, note: the update_workflow tool must be loaded into context together with the create_workflow tool, because the former contains detailed instructions on how to create and configure custom nodes; update_workflow requires the configuration of the workflow it updates to be included in context, which can be provided by the user or obtained by calling the get_workflow_info tool, because this tool is not a patch applier but completely replaces the workflow configuration.
Newly developed features, fixes, and enhancements are added to CHANGELOG.md. Before being promoted to a stable version, the 0.x.x-dev prerelease format is preferred. Troubleshooting: If you encounter Error: spawn <command> ENOENT, it means <command> is not installed or is not in PATH. You need to install it and add it to PATH, or provide an absolute path in the configured command field, for example replacing python with /opt/miniconda3/bin/python.