Featured

Deploy OpenClaw in 60 seconds — 20% off logoDeploy OpenClaw in 60 seconds — 20% off

Launch OpenClaw on Hostinger in about 60 seconds and keep your agent live 24/7. Our referral link gives you 20% off, no coupon code needed.

Launch on Hostinger
Run your Hermes agent on Hostinger, fully managed logoRun your Hermes agent on Hostinger, fully managed

Launch Hermes on Hostinger in one click, fully managed, no VPS knowledge needed. Use code ZACAARON10 for 10% off.

Launch on Hostinger
Crawl and scrape any site into clean data, 10% off logoCrawl and scrape any site into clean data, 10% off

Firecrawl crawls and scrapes any site into clean markdown for your agent. Get 1,000 free credits, and new users get 10% off their first purchase.

Try Firecrawl free
6,000+ web scrapers for your AI agent, start free logo6,000+ web scrapers for your AI agent, start free

Apify gives your agent live web data: 6,000+ prebuilt scrapers and actors, MCP-ready. Sign up free with $5 in usage credits.

Try Apify free
One API to scrape, enrich, and extract the internet. logoOne API to scrape, enrich, and extract the internet.

Context.dev gives your agents a single API to scrape, enrich, and extract live web data — no proxies, no parsers, no maintenance.

Start building free
SetupClaw: done-for-you OpenClaw for founders & exec teams logoSetupClaw: done-for-you OpenClaw for founders & exec teams

White-glove OpenClaw for founders and exec teams (4–50+ employees): we install, harden, integrate your tools, and maintain it — secured from day one.

Get it set up for you
SEO data APIs for your agent, $1 free credit logoSEO data APIs for your agent, $1 free credit

DataForSEO gives your agent live access to SERP results, keyword data, backlinks, and on-page SEO data through one API. New accounts get a $1 credit, good for up to 20,000 keyword or backlink lookups.

Try DataForSEO free
Reach 48,000+ AI builders

A flat monthly placement in front of developers actively installing AI tools. No lock-in, cancel anytime.

Advertise here

Works with

Claude CodeClaude DesktopCursorVS CodeClineCodex CLIOpenClaw+ any MCP client

Install to Claude Code

This server doesn't publish a one-line install command. Follow the setup in the source repository.

Summary

Enables interaction with the Civis Platform for data exploration, querying, and workflow execution. Supports schema-restricted read-only mode and tools like run_query, list_tables, and publish_html_report.

README.md

Civis MCP Server

A Model Context Protocol server that provides an interface to the Civis Platform

Configuration

Configure for Claude.app

Add the following to your Claude settings:

{
  "mcpServers": {
    "civis": {
      "command": "docker",
      "args": ["run", "-i", "--rm", "-e", "CIVIS_API_KEY" "civisanalytics/mcp-server"],
      "env": {
        "CIVIS_API_KEY": "Put a valid API key here"
      }
    }
  }
}

The settings file is at ~/Library/Application\ Support/Claude/claude_desktop_config.json on MacOS. You'll need to add a valid Civis API key to the file, so make sure to run chmod 600 to restrict access to that file, and never commit it to version control.

Configure for VS Code

Add the following JSON block to your User Settings (JSON) file in VS Code. You can do this by pressing Ctrl + Shift + P and typing Preferences: Open User Settings (JSON).

Optionally, you can add it to a file called .vscode/mcp.json in your workspace. This will allow you to share the configuration with others.

Note that the mcp key is needed when using the mcp.json file.

{
  "mcp": {
    "inputs": [{
      "type": "promptString",
      "id": "CIVIS_API_KEY",
      "description": "CIVIS API Key",
      "password": true
    }],
    "servers": {
      "civis": {
        "command": "docker",
        "args": [
          "run",
          "-i",
          "--rm",
          "-e", "CIVIS_API_KEY",
          "civisanalytics/mcp-server",
      ],
      "env": {
          "CIVIS_API_KEY": "${input:CIVIS_API_KEY}"
      }
    }
  }
}

Schema-Restricted Mode

The --schema parameter limits the server to read-only data exploration within a specific schema, disabling workflow tools and access to other schemas.

When enabled:

  • Only data tools are available: run_query, list_tables, get_table, pull_data_list, publish_html_report
  • Queries are wrapped with BEGIN READ ONLY;
  • Queries must reference the configured schema

To enable, add "--schema", "your_schema" to the args. You can optionally add "--description", "context about your data" to help the AI understand the data.

{
  "mcpServers": {
    "civis": {
      "command": "docker",
      "args": [
        "run", "-i", "--rm", "-e", "CIVIS_API_KEY",
        "civisanalytics/mcp-server",
        "--schema", "analytics_mart"
      ],
      "env": {
        "CIVIS_API_KEY": "your-api-key"
      }
    }
  }
}

Examples of Questions

  1. "Query the donations table from the donors schema in Civis.

How many donations happened in the last 30 days compared to one year ago?"

  1. "Add all the tables from the salesforce_prod schema in Civis as dbt

sources. Include column names and types."

  1. "Post this YAML file as a Civis workflow and execute it."
  2. "How long did my most recent workflow take to execute?"

Local Installation

Using uv (recommended)

When using uv no specific installation is needed. We will use uvx to directly run mcp-server-civis.

Using PIP

Alternatively you can install mcp-server-civis via pip:

pip install mcp-server-civis

After installation, you can run it as a script using:

python -m mcp_server_civis

Debugging

You can use the MCP inspector to debug the server. For uvx installations:

npx @modelcontextprotocol/inspector uvx mcp-server-civis

Or if you've installed the package in a specific directory or are developing on it:

cd path/to/servers/src/time
npx @modelcontextprotocol/inspector uv run mcp-server-civis

Build

Docker build:

docker build -t civisanalytics/mcp-server .

Contributing

We encourage contributions to help expand and improve mcp-server-civis. Whether you want to add new time-related tools, enhance existing functionality, or improve documentation, your input is valuable.

For examples of other MCP servers and implementation patterns, see: (https://github.com/modelcontextprotocol/servers)

Pull requests are welcome! Feel free to contribute new ideas, bug fixes, or enhancements to make mcp-server-civis even more powerful and useful.

License

mcp-server-civis is licensed under the 3-Clause BSD License. This means you are free to use, modify, and distribute the software, subject to the terms and conditions of that license. For more details, please see the LICENSE.md file in the project repository.

See related servers & alternatives →

Related MCP servers

Browse all →

Related guides

Hand-picked reading to help you choose and use Other servers.