Logotipo de Tabular MCP Server

Tabular MCP Server

Comunidad
jonaolden

PowerBI MCP server to give LLM clients (Claude, GH Copilot,etc) context from locally running PowerBI Desktop instances.

Editorjonaolden
Repositoriomcpbi
IdiomaC#
Forks
7
Estrellas
21
Herramientas disponibles
0
Tipo de transportestdio
Categorías
Enlaces
  • Conecta herramientas a flujos de trabajo con IA

    Tabular MCP Server ofrece funciones MCP que pueden usar los clientes y agentes de IA compatibles.

  • 0 herramientas disponibles

    Explora a continuación las acciones que se pueden invocar, con sus nombres y descripciones cuando el servidor los proporcione.

  • Configuración lista para copiar

    Usa los ejemplos de instalación para configurar este servidor en tu cliente MCP preferido.

  • Indicadores de interés de la comunidad en el repositorio

    21 estrellas y 7 forks en el repositorio enlazado.

MCPBI - Tabular Model MCP Server

This is a Model Context Protocol (MCP) server for locally running Tabular Models, i.e. PowerBI models running on PowerBI Desktop.

This server allows MCP-enabled LLM clients to communicate with your tabular models and help you debug, analyse and compose DAX queries.

Example: Copilot querying Tabular Model via MCP

roocodedemo

How it works

It connects to a local running instance of Tabular models using the AdomdConnection in ADOMD.NET.

Using this connection, the server then allows clients to execute DAX-queries and retrieve model metadata (using DMV queries) through pre-defined tools for high accuracy, as well as custom DAX queries for debugging and development.

Features

Configuration Options

Port

Specify the Power BI Desktop instance port to connect to (required).

bash
# Example: Connect to Power BI Desktop instance on port 56751
dotnet run -- --port 56751

Obfuscation

Protect sensitive data with configurable encryption strategies:

  • None (default): No obfuscation
  • All: Mask all values
  • Dimensions: Mask only text/date fields (keep numeric data visible)
  • Facts: Mask only numeric fields (keep dimensional context)
bash
# Example: Protect customer/product names while keeping sales figures visible
dotnet run -- --port 56751 --obfuscation-strategy dimensions --encryption-key "YourSecureKey123!"

Output Truncation

Automatic row limiting with comprehensive metadata:

  • Default 500-row limit (configurable)
  • Response includes: totalRows, displayedRows, truncated, hasMore
bash
# Example: Increase row limit for analysis
dotnet run -- --port 56751 --max-rows 2000

Tools

list_objects

  • Lists all objects in the model (tables, columns, measures, relationships)
  • Returns object type, name, and basic metadata

get_object_details

  • Retrieves detailed metadata for a specific object (table, column, measure)
  • Returns properties, data types, relationships, and dependencies

list_functions

  • Lists available DAX functions with optional filtering by category or origin
  • Returns function name, description, interface classification, and origin

get_function_details

  • Retrieves comprehensive details for a specific DAX function including full parameter information
  • Returns function signature, parameter requirements, return type, and DirectQuery compatibility

run_query

  • Executes a custom DAX query against the model
  • Returns query results with metadata (total rows, truncated status)

1. Model Discovery

Use [ListTables], [GetTableColumns], and [GetTableRelationships] to quickly understand an unfamiliar model's structure without manually clicking through Power BI Desktop.

2. DAX Assistance

LLM clients can use [ListMeasures] and [GetMeasureDetails] to learn your existing DAX patterns and suggest consistent new measures that follow your naming conventions and calculation styles.

3. Debugging

Combine [RunQuery] with [ValidateDaxSyntax] to iteratively test and refine DAX expressions with immediate feedback on syntax and results.

validate_query

  • Validates DAX query syntax without execution
  • Returns syntax correctness and error messages if applicable

analyze_query_performance

  • Analyzes DAX query performance and provides optimization suggestions
  • Returns execution time, resource usage, and improvement recommendations

Installation

Setup Instructions

Requirements

  • Power BI Desktop (with a PBIX file open for discovery)
  • Windows OS
  • Visual Studio Code (for MCP server integration)
  • .NET 8.0 Runtime

Setup from Prebuilt Release

  1. Download the release from the Releases directory or GitHub releases page and extract to your preferred location.

  2. Open Power BI Desktop with a PBIX file you want to work with.

  3. Get PowerBI instance information

There are several ways to detect Power BI Desktop instances. The easiest is to open Tabular Editor and check the port in the connection string.

Simply add the port (63717 in example above) to your MCP server configuration in the next step (you can ignore the database ID, as this server connects to the default model).
If you don't have Tabular Editor, you can use the included discovery tool to find the running instance and database.

Open PowerShell, navigate to the release directory, and run:

powershell
cd path\to\release
.\pbi-local-mcp.DiscoverCli.exe

Note: In PowerShell, you must use .\ prefix to run executables from the current directory.

Follow the prompts to:

  • Select the Power BI Desktop instance (identified by port)
  • Choose the database/model to connect to

This creates a .env file with PBI_PORT and PBI_DB_ID in the release directory, which you can reference in your MCP configuration or ignore if you specify the port directly.

  1. Configure MCP server in your editor. For VS Code with Roo, create/edit .roo/mcp.json:
    json
    {
      "mcpServers": {
        "MCPBI": {
          "type": "stdio",
          "command": "path\\to\\release\\mcpbi.exe",
          "cwd": "path\\to\\release",
          "args": ["--port", "YOUR_PBI_PORT"],
          "disabled": false,
          "alwaysAllow": [
            "ListTables",
            "GetTableDetails",
            "GetTableColumns",
            "GetTableRelationships",
            "ListMeasures",
            "GetMeasureDetails",
            "PreviewTableData",
            "RunQuery",
            "ValidateDaxSyntax",
            "AnalyzeQueryPerformance",
            "ListFunctions",
            "GetFunctionDetails"
          ]
        }
      }
    }
    Replace path\\to\\release with your actual release directory path and YOUR_PBI_PORT with the port number from PBI instance.

Setup from Source (For Development)

  1. Clone the repository:

    sh
    git clone <repository-url>
    cd MCPBI
  2. Build the project:

    sh
    dotnet build
  3. Open Power BI Desktop with a PBIX file.

  4. Run discovery to create .env file:

    sh
    dotnet run --project pbi-local-mcp/pbi-local-mcp.csproj discover-pbi

    Follow prompts to select instance and database.

  5. Configure MCP server in .roo/mcp.json:

    json
    {
      "mcpServers": {
        "mcpbi-dev": {
          "type": "stdio",
          "command": "dotnet",
          "cwd": "path\\to\\MCPBI",
          "envFile": "path\\to\\MCPBI\\.env",
          "args": [
            "exec",
            "path\\to\\MCPBI\\pbi-local-mcp\\bin\\Debug\\net8.0\\pbi-local-mcp.dll"
          ],
          "disabled": false,
          "alwaysAllow": [
            "ListTables",
            "GetTableDetails",
            "GetTableColumns",
            "GetTableRelationships",
            "ListMeasures",
            "GetMeasureDetails",
            "PreviewTableData",
            "RunQuery",
            "ValidateDaxSyntax",
            "AnalyzeQueryPerformance",
            "ListFunctions",
            "GetFunctionDetails"
          ]
        }
      }
    }

    Replace path\\to\\MCPBI with your actual repository path.

Configuration Notes

  • Use either port or envFile: You can specify the Power BI port directly in args or use envFile to load from .env.
  • Port argument: The --port argument in the release configuration connects to the specific Power BI Desktop instance on that port
  • envFile: The development setup uses envFile to automatically load PBI_PORT and PBI_DB_ID from .env
  • alwaysAllow: Lists all tools that can be used without requiring user approval for each invocation
  • Working directory: The cwd parameter sets the working directory where the .env file is located

Instalación

TypingMind
Requisitos:

Node.js 18+

{
  "mcpServers": {
    "jonaolden-tabular-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "tabular-mcp"
      ]
    }
  }
}

Usa el MCP de Tabular MCP Server con varios modelos de IA

TypingMind conecta las herramientas MCP a nivel del espacio de trabajo, por lo que, una vez conectado Tabular MCP Server, puedes usarlo con distintos modelos de IA en TypingMind sin tener que configurarlo por separado para cada modelo. Esta integración MCP se ejecuta localmente en tu dispositivo a través del conector MCP de TypingMind.

Guía de configuración para usar el conector local

Usa esta opción si el servidor MCP necesita acceder a archivos locales, aplicaciones o recursos privados de tu ordenador.

1

Abre los ajustes de MCP

En TypingMind, ve a Ajustes, luego a Ajustes avanzados y a Model Context Protocol, y elige Configurar conector.

  1. Abre TypingMind en tu navegador.
  2. Haz clic en el icono de Ajustes.
  3. Ve a Ajustes avanzados.
  4. Abre la sección Model Context Protocol.
  5. Haz clic en Configurar conector y elige Este dispositivo.
Pantalla de configuración del conector MCP de TypingMind con «Este dispositivo» seleccionado
2

Ejecuta el comando del conector

Elige Este dispositivo, copia el comando de TypingMind y ejecútalo en Terminal. Mantén el proceso en ejecución mientras uses MCP.

  1. Copia el comando de configuración que muestra TypingMind.
  2. Abre Terminal en macOS o Windows Terminal en Windows.
  3. Pega y ejecuta el comando.
  4. Acepta la instalación del paquete si Terminal te pide confirmación para continuar.
  5. Mantén el proceso en ejecución en la ventana de Terminal mientras uses las herramientas MCP.
3

Añade Tabular MCP Server como servidor

Cuando el estado del conector sea «Listo», haz clic en «Editar servidores» y pega la configuración del servidor MCP.

  1. Espera hasta que el estado del conector indique «Listo».
  2. Haz clic en «Editar servidores».
  3. Pega la configuración del servidor MCP de Tabular MCP Server.
  4. Guarda la lista de servidores.
  5. Actualiza si quieres comprobar que el conector sigue listo.
Ajustes de MCP de TypingMind con un servidor activo y el botón «Editar servidores»
{
  "mcpServers": {
    "jonaolden-tabular-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "tabular-mcp"
      ]
    }
  }
}
4

Usa la conexión con distintos modelos

Guarda la lista de servidores, abre Plugins, activa las herramientas MCP de Tabular MCP Server y selecciona cualquier modelo de IA compatible en TypingMind para usar las herramientas en el chat o asignárselas a un agente de IA.

  1. Abre la página Plugins en TypingMind.
  2. Activa las herramientas MCP de Tabular MCP Server.
  3. Inicia un chat y elige el modelo de IA que quieras usar.
  4. Usa las herramientas MCP en el chat o asígnalas a un agente de IA.
  5. Cambia a otro modelo de IA cuando lo necesites sin volver a conectar MCP.
Chat de TypingMind que usa herramientas MCP activadas con un modelo de IA seleccionado
¿Puedes usar Tabular MCP Server para ayudarme con esta tarea?
Tabular MCP Server
Claro. Lo he leído.
Esto es lo que he encontrado con Tabular MCP Server.

Preguntas frecuentes

¿Para qué sirve el servidor MCP Tabular MCP Server?

Tabular MCP Server es un servidor MCP que permite a los clientes de IA compatibles conectarse a herramientas externas y acceder a información de contexto de fuentes externas. En TypingMind, basta con añadir este servidor MCP una vez para que sus herramientas estén disponibles en tu espacio de trabajo de IA.

¿Puedo usar el servidor MCP Tabular MCP Server con varios modelos de IA en TypingMind?

Sí. TypingMind conecta las herramientas MCP a nivel del espacio de trabajo, por lo que puedes usar Tabular MCP Server con distintos modelos de IA, como Claude, ChatGPT, Gemini u otros que hayas configurado en TypingMind, sin configurar el servidor MCP por separado para cada modelo.

¿Por qué usar el servidor MCP Tabular MCP Server con TypingMind?

TypingMind es una de las mejores interfaces de chat con LLM porque reúne varios modelos de IA, prompts, plugins, agentes de IA, claves API y herramientas MCP en un solo espacio de trabajo. Con Tabular MCP Server conectado, puedes usar sus herramientas MCP con tus modelos preferidos y mantener organizado tu trabajo con los chats en TypingMind.

¿Cómo conecto el servidor MCP Tabular MCP Server a TypingMind?

Tabular MCP Server funciona a través del conector MCP local de TypingMind. Es la mejor opción cuando el servidor MCP necesita acceder a archivos locales, aplicaciones de escritorio, herramientas de línea de comandos o recursos privados de tu ordenador.

¿Qué herramientas ofrece el servidor MCP Tabular MCP Server en TypingMind?

Tabular MCP Server ofrece funciones MCP que puedes activar desde la página Plugins de TypingMind y usar en el chat o asignar a agentes de IA.

¿Tengo que compartir mis claves API con TypingMind para usar el servidor MCP Tabular MCP Server?

No. TypingMind prioriza el funcionamiento local y te permite mantener el control de tus proveedores de modelos, claves API, prompts y configuración MCP. Si Tabular MCP Server requiere autenticación, añade las cabeceras, los ajustes de OAuth o la configuración local necesarios para ese servidor MCP al crear la conexión.

Servidores MCP relacionados

Ver el directorio

Crea ya tu propio espacio de trabajo con IA

Suscríbete a nuestro boletín para recibir avisos sobre nuevas funciones y próximos sorteos 👇