# matih.ai

> matih.ai is an MCP server for analytics and data. MCP server giving AI clients governed SQL, metrics, lineage and catalog access to your. It can run locally on your machine or as a hosted remote server.

- **Kind:** MCP server
- **Platforms:** CLI, API, Self-hosted
- **Website:** https://matih.ai
- **Repository:** https://github.com/matih-labs/matih-mcp
- **MCP Registry name:** ai.matih/mcp
- **Categories:** [analytics and data](https://ai-powered.com/categories/analytics-and-data)
- **Listing updated:** 2026-11-27

## About

Matih's MCP server lets an AI client such as Claude Desktop, Cursor or ChatGPT work directly against a Matih data workspace. Instead of pasting schemas into a prompt, the model can browse connections, tables and columns, profile a table, and run SQL or analyses that Matih executes on the user's behalf.

Beyond querying, the server exposes the semantic layer: governed metrics, a glossary, an ontology with entity relationships, and taxonomy exports. Charts, dashboards and file uploads are also reachable through the same tools. Each token is limited to the connections and capabilities granted in Matih settings, and the server runs as a local stdio bridge to a remote HTTP endpoint or connects over streamable HTTP directly.

The server suits data teams and developers who want an assistant to answer questions from governed definitions rather than ad hoc queries. Calls to third-party LLMs require the tenant to accept a data-processing agreement first.

## Features

- **Governed SQL execution:** Runs SQL and analyses against connected data sources and returns results the assistant can read.
- **Table profiling and catalog:** Lists connections, schemas and tables and profiles or describes them for the model.
- **Governed metrics:** Fetches and runs approved metric definitions and proposes new drafts into a human review workflow.
- **Ontology and lineage access:** Searches entities and relationships and exposes catalog and lineage resources.
- **Charts and dashboards:** Creates charts and dashboards and publishes them from within the AI client.
- **Token-scoped access:** Every call is bounded by the developer token's connections and granted capabilities.

## Good for

- Asking natural-language questions of a warehouse and getting the SQL behind each answer
- Exploring unfamiliar tables and their relationships before writing queries
- Running approved metrics inside a chat without redefining them
- Generating charts and dashboards from an assistant conversation
- Uploading files into a Matih workspace for analysis

## Install

### Claude Code: Add with the CLI (Terminal)

```sh
claude mcp add --transport http mcp https://mcp.matih.ai/api/v1/mcp
```

Add --scope user to use it in every project, or --scope project to share it in .mcp.json.

### Claude Code: Or share it with your project (.mcp.json)

```json
{
  "mcpServers": {
    "mcp": {
      "type": "http",
      "url": "https://mcp.matih.ai/api/v1/mcp"
    }
  }
}
```

### Claude Desktop (Customize → Connectors → Add → Add custom connector)

```text
https://mcp.matih.ai/api/v1/mcp
```

Paste this URL, choose how to sign in, then click Add and Connect. On Team and Enterprise an Owner adds it in Organization settings → Connectors.

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "mcp": {
      "url": "https://mcp.matih.ai/api/v1/mcp"
    }
  }
}
```

Use .cursor/mcp.json in a project to share it with the project.

### VS Code (~/.copilot/mcp-config.json)

```json
{
  "mcpServers": {
    "mcp": {
      "type": "http",
      "url": "https://mcp.matih.ai/api/v1/mcp"
    }
  }
}
```

Or put the same entry in .mcp.json at your workspace root to share it.

### ChatGPT (chatgpt.com → Plugins → + → Add custom MCP server)

```text
https://mcp.matih.ai/api/v1/mcp
```

Paste this URL, set up sign-in, accept the warning and install the plugin. Then type @ in a chat to use it.

### Codex: Add with the CLI (Terminal)

```sh
codex mcp add mcp --url https://mcp.matih.ai/api/v1/mcp
```

### Codex: Or add to config.toml (~/.codex/config.toml)

```toml
[mcp_servers.mcp]
url = "https://mcp.matih.ai/api/v1/mcp"
```

### Gemini CLI and Antigravity: Gemini CLI (~/.gemini/settings.json)

```json
{
  "mcpServers": {
    "mcp": {
      "httpUrl": "https://mcp.matih.ai/api/v1/mcp"
    }
  }
}
```

Or run: gemini mcp add -s user --transport http mcp https://mcp.matih.ai/api/v1/mcp

### Gemini CLI and Antigravity: Antigravity (~/.gemini/config/mcp_config.json)

```json
{
  "mcpServers": {
    "mcp": {
      "serverUrl": "https://mcp.matih.ai/api/v1/mcp"
    }
  }
}
```

Use .agents/mcp_config.json to add it to one workspace only.

### Devin Desktop (~/.config/devin/mcp_config.json)

```json
{
  "mcpServers": {
    "mcp": {
      "url": "https://mcp.matih.ai/api/v1/mcp",
      "transport": "http"
    }
  }
}
```

On Windows the file is %APPDATA%\\devin\\mcp_config.json. Use .devin/mcp_config.json to share it with a project.

### Cline (cline_mcp_settings.json)

```json
{
  "mcpServers": {
    "mcp": {
      "type": "streamableHttp",
      "url": "https://mcp.matih.ai/api/v1/mcp"
    }
  }
}
```

Open it from the MCP Servers icon → Configure → Configure MCP Servers.

### Zed (Zed settings.json)

```json
{
  "context_servers": {
    "mcp": {
      "url": "https://mcp.matih.ai/api/v1/mcp"
    }
  }
}
```

Open it with zed: open settings file. Merge context_servers into the settings you already have.

### JetBrains AI Assistant and Junie: AI Assistant (Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add)

```json
{
  "mcpServers": {
    "mcp": {
      "url": "https://mcp.matih.ai/api/v1/mcp"
    }
  }
}
```

### JetBrains AI Assistant and Junie: Junie (~/.junie/mcp/mcp.json)

```json
{
  "mcpServers": {
    "mcp": {
      "url": "https://mcp.matih.ai/api/v1/mcp"
    }
  }
}
```

Use .junie/mcp/mcp.json to share it with a project.

### Kiro (~/.kiro/settings/mcp.json)

```json
{
  "mcpServers": {
    "mcp": {
      "url": "https://mcp.matih.ai/api/v1/mcp"
    }
  }
}
```

Use .kiro/settings/mcp.json to add it to one workspace only.

### Grok Bot (Grok Bot desktop app → Connect apps → Add a custom connector)

```sh
https://mcp.matih.ai/api/v1/mcp
```

Enter a Name (for example "matih.ai"), choose Type: Remote HTTPS, paste this as the Server URL and choose Add plugin.

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "mcp": {
      "type": "http",
      "url": "https://mcp.matih.ai/api/v1/mcp"
    }
  }
}
```

## Tools

From the tool list in its README, going by the names, 7 of 16 tools change data; 5 names don't say. From the server's own tool labels and tool names; not verified by us.

- `ask`: Natural-language question to grounded answer and the SQL it ran.
- `run_sql` (name suggests: changes): Runs a SQL query against a connection.
- `run_analysis` (name suggests: changes): Runs an analysis on data.
- `profile_table`: Profiles a table.
- `describe_table` (name suggests: reads): Describes a table.
- `list_tables` (name suggests: reads): Lists tables.
- `get_metric` (name suggests: reads): Gets a governed metric.
- `run_metric` (name suggests: changes): Runs a governed metric.
- `draft_metric`: Proposes a draft metric definition for review.
- `explore_graph`: Explores the ontology graph.
- `create_chart` (name suggests: changes): Creates a chart.
- `create_dashboard` (name suggests: changes): Creates a dashboard.
- `publish_dashboard` (name suggests: changes): Publishes a dashboard.
- `upload_file` (name suggests: changes): Uploads a file.
- `whoami`: Returns the identity of the token holder.
- `get_scope` (name suggests: reads): Shows what a token allows.

## FAQ

### How is the server installed?

Add the @matihlabs/mcp npm package to the client's MCP config with the workspace endpoint and a Matih developer token passed as an environment variable.

### Where do I get a token?

Developer tokens are created under Settings, then Developer Tokens in the Matih app and start with mat_agt_.

### What happens if my tenant has not accepted the data agreement?

Calls return an EGRESS_CONSENT_REQUIRED error with a link to accept the agreement.

### What does Node version does matih.ai need?

Node 20 or later.

### How do I add matih.ai to Claude Code?

Run this command in your terminal: claude mcp add --transport http mcp https://mcp.matih.ai/api/v1/mcp

### What are the best alternatives to matih.ai?

The closest alternatives to matih.ai are Metabase, Dataassist IO, Metabase Ai Assistant, AgenticBI and MCP Datahub.

## Where this comes from

- Description: written from the project's README, the project's website and its MCP Registry entry.
- Install steps: from the official MCP Registry entry.

## Alternatives

- [Metabase](https://ai-powered.com/mcp/metabase-2): Metabase is an open-source MCP server for analytics and data.
- [Dataassist IO](https://ai-powered.com/mcp/dataassist-io): Dataassist IO is a freemium MCP server for analytics and data.
- [Metabase Ai Assistant](https://ai-powered.com/mcp/metabase-ai-assistant): Metabase Ai Assistant is an open-source MCP server for analytics and data.
- [AgenticBI](https://ai-powered.com/mcp/agenticbi): AgenticBI is an MCP server for analytics and data.
- [MCP Datahub](https://ai-powered.com/mcp/mcp-datahub): MCP Datahub is an open-source MCP server for data quality.
- [compute.googleapis.com](https://ai-powered.com/mcp/compute-googleapis-com): compute.googleapis.com is an MCP server for cloud and infrastructure.
- [Scorecard](https://ai-powered.com/mcp/scorecard): Scorecard is an MCP server for developer tools.
- [MCP Sparql](https://ai-powered.com/mcp/mcp-sparql): MCP Sparql is an open-source MCP server for databases.

---
Source: https://ai-powered.com/mcp/matih-ai
