Skip to main content

Add your description here

Project description

OpenRefine MCP Server

Test

A Model Context Protocol (MCP) server that provides a typed, discoverable interface to OpenRefine's HTTP API. This allows any MCP-capable client (like Claude Desktop) to orchestrate data-cleaning pipelines safely and reproducibly.

Installation

Prerequisites

  • Python 3.13 or higher
  • uv package manager
  • OpenRefine instance running (default: http://localhost:3333)

Install the Package

# Clone the repository
git clone <repository-url>
cd openrefine_mcp

# Install dependencies using uv
uv sync

Setup Claude Desktop

  1. Create or edit your Claude Desktop configuration file:

    # On macOS/Linux
    ~/.config/claude_desktop_config.json
    
    # On Windows
    %APPDATA%\claude_desktop_config.json
    
  2. Add the OpenRefine MCP server to your configuration:

    {
      "mcpServers": {
        "openrefine": {
          "command": "uv",
          "args": [
            "--directory",
            "path/to/your/openrefine_mcp",
            "run",
            "openrefine_mcp/openrefine_server.py"
          ],
          "env": {
            "OPENREFINE_URL": "http://localhost:3333"
          }
        }
      }
    }
    
  3. Restart Claude Desktop to load the new MCP server.

Features

This MCP server implements the following OpenRefine API endpoints:

OpenRefine API Endpoint MCP Implementation Status
POST /command/core/create-project-from-upload create_project(dataset_url: str, name: str | None = None)
GET /command/core/get-models get_project_models(project_id: int) resource
POST /command/core/apply-operations apply_operations(project_id: int, operations: str)
POST /command/core/export-rows export_csv(project_id: int)
POST /command/core/delete-project delete_project(project_id: int)
POST /command/core/set-project-metadata -
POST /command/core/set-project-tags -
GET /command/core/get-all-project-metadata -
POST /command/core/preview-expression -
GET /command/core/get-processes -

Available Tools

  • create_project(dataset_url: str, name: str | None = None) → Creates a new OpenRefine project from a dataset URL
  • apply_operations(project_id: int, operations: str) → Applies operations to an OpenRefine project
  • export_csv(project_id: int) → Exports CSV data from an OpenRefine project
  • delete_project(project_id: int) → Deletes an OpenRefine project

Available Resources

  • openrefine://project/{project_id}/models → Returns structural information about the project including column definitions, record model configuration, available scripting languages, and overlay models

Development

Running Tests

make test

Running the MCP Inspector server

make inspector

License

This project is licensed under the MIT License - see the LICENSE file for details.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file iflow_mcp_fiquemsabendo_openrefine_mcp-0.1.0.tar.gz.

File metadata

  • Download URL: iflow_mcp_fiquemsabendo_openrefine_mcp-0.1.0.tar.gz
  • Upload date:
  • Size: 8.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.2 {"installer":{"name":"uv","version":"0.10.2","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"13","id":"trixie","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for iflow_mcp_fiquemsabendo_openrefine_mcp-0.1.0.tar.gz
Algorithm Hash digest
SHA256 92b75bb1c27a5418f606a8b9a61bf2a4263c65beb62b5c1b9062e33b402a5d49
MD5 5a7f8908361ce050ce3a9c621f849cdc
BLAKE2b-256 0a34e2deed4b003bb8861f86579721e3e1f806104c95659d978c8d3ed9669637

See more details on using hashes here.

File details

Details for the file iflow_mcp_fiquemsabendo_openrefine_mcp-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: iflow_mcp_fiquemsabendo_openrefine_mcp-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 9.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.2 {"installer":{"name":"uv","version":"0.10.2","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"13","id":"trixie","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for iflow_mcp_fiquemsabendo_openrefine_mcp-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2332a9105cff7ef311e70338e6040fe487ac51683f4d77cfdcd62ab1f0bfadf9
MD5 d717c9640dff34f09bb83243e873a22f
BLAKE2b-256 78d6357572a8093e13ab33a51a96507c34d43e1ba0a2cd0463abe79f4452b763

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page