AIFoundry MCP Connector

v1.0.0Cloud Servicesstable

MCP Client and Server apps to demo integration of Azure OpenAI-based AI agent with a Data Warehouse, exposed through GraphQL in Microsoft Fabric.

agentaiazuredata-warehousegraphql
Share:
11
Stars
0
Downloads
0
Weekly
0/5

What is AIFoundry MCP Connector?

AIFoundry MCP Connector is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to mcp client and server apps to demo integration of azure openai-based ai agent with a data warehouse, exposed through graphql in microsoft fabric.

MCP Client and Server apps to demo integration of Azure OpenAI-based AI agent with a Data Warehouse, exposed through GraphQL in Microsoft Fabric.

This server falls under the Cloud Services category on MCPgee, the world's largest MCP server directory with 33,000+ servers.

Features

  • MCP Client and Server apps to demo integration of Azure Open

Use Cases

Azure OpenAI agent integration
GraphQL data warehouse exposure
LazaUK

Maintainer

LicenseMIT
Languagepython
Versionv1.0.0
UpdatedApr 16, 2026
Statushealthy
Maintenanceactive

Works with

ClaudeOpenAIwindowsmacoslinux

Installation

Manual Installation

npx aifoundry-mcpconnector-fabricgraphql

Configuration

Configuration Details

Config File

claude_desktop_config.json

Performance

Response Metrics

Response Time< 200ms
ThroughputMedium

Resource Usage

Memory UsageLow
CPU UsageLow

How to Set Up and Use AIFoundry MCP Connector

AIFoundry MCP Connector demonstrates how to wire an Azure OpenAI-based AI agent to a Microsoft Fabric Data Warehouse exposed through a GraphQL API, using an MCP server as the middleware layer so the agent can query and mutate enterprise data through natural language via a Gradio chat interface.

Prerequisites

  • Python 3.9+ installed with pip
  • Azure OpenAI resource with a deployment configured (e.g. GPT-4o)
  • Microsoft Fabric workspace with a sample warehouse and a GraphQL API endpoint created
  • Azure credentials with access to both the OpenAI resource and the Fabric workspace
  • Git to clone the repository
1

Clone the Repository

Clone the AIFoundry MCP Connector repository to your local machine.

git clone https://github.com/LazaUK/AIFoundry-MCPConnector-FabricGraphQL.git
cd AIFoundry-MCPConnector-FabricGraphQL
2

Install Python Dependencies

Install all required packages from requirements.txt, which includes the Azure OpenAI SDK, MCP client/server libraries, and Gradio for the web UI.

pip install -r requirements.txt
3

Set Up Microsoft Fabric GraphQL Endpoint

In your Microsoft Fabric workspace, create a sample data warehouse via 'New item → Sample warehouse'. Then create a GraphQL API via 'New item → API for GraphQL', configure it to expose the Trip table (dbo.Trip), and copy the generated GraphQL endpoint URL.

4

Configure Environment Variables

Set the four required environment variables. AOAI_API_BASE is your Azure OpenAI endpoint URL (e.g. https://your-resource.openai.azure.com/), AOAI_DEPLOYMENT is the model deployment name, and AZURE_FABRIC_GRAPHQL_ENDPOINT is the URL copied from the Fabric GraphQL setup.

export AOAI_API_BASE="https://your-resource.openai.azure.com/"
export AOAI_API_VERSION="2024-12-01-preview"
export AOAI_DEPLOYMENT="gpt-4o"
export AZURE_FABRIC_GRAPHQL_ENDPOINT="https://api.fabric.microsoft.com/v1/workspaces/.../graphql"
5

Start the MCP Connector

Launch the Gradio client application, which starts the MCP server internally and opens a browser-based chat interface. Click 'Initialise System' in the UI before sending queries.

python MCP_Client_Gradio.py
6

Query the Data Warehouse

In the Gradio UI, click 'Initialise System' to connect the Azure OpenAI agent to the MCP server and Fabric GraphQL endpoint. You can now ask natural-language questions about the warehouse data. The agent will generate and execute GraphQL queries automatically.

AIFoundry MCP Connector Examples

Client configuration

Environment variable configuration for connecting the MCP connector to Azure OpenAI and Microsoft Fabric.

{
  "mcpServers": {
    "fabric-graphql": {
      "command": "python",
      "args": ["MCP_Server_FabricGraphQL.py"],
      "cwd": "/path/to/AIFoundry-MCPConnector-FabricGraphQL",
      "env": {
        "AOAI_API_BASE": "https://your-resource.openai.azure.com/",
        "AOAI_API_VERSION": "2024-12-01-preview",
        "AOAI_DEPLOYMENT": "gpt-4o",
        "AZURE_FABRIC_GRAPHQL_ENDPOINT": "https://api.fabric.microsoft.com/v1/workspaces/your-workspace-id/items/your-item-id/graphql"
      }
    }
  }
}

Prompts to try

Natural-language queries to send through the Gradio chat interface once the system is initialised.

- "How many trips are recorded in the data warehouse?"
- "Show me the top 10 most expensive trips by fare amount."
- "What is the average trip duration and distance in the dataset?"
- "List all trips that started after 6pm and lasted more than an hour."
- "What is the total revenue across all trips in the warehouse?"

Troubleshooting AIFoundry MCP Connector

Azure OpenAI returns 401 or 403 authentication errors

Ensure AOAI_API_BASE ends with a trailing slash and matches exactly the endpoint shown in the Azure portal. Confirm your Azure credentials are active by running 'az account show'. The connector uses DefaultAzureCredential, so 'az login' must have been run in the same session.

Fabric GraphQL endpoint returns 403 Forbidden

Your Azure account must have at least 'Contributor' access on the Fabric workspace. In the Fabric portal, go to Workspace settings → Manage access and add your Azure AD user or service principal with the appropriate role.

Gradio UI opens but 'Initialise System' does nothing or shows an error

All four environment variables must be set before launching MCP_Client_Gradio.py. Check the terminal output for specific error messages. A common issue is AOAI_DEPLOYMENT not matching the exact deployment name in Azure OpenAI Studio.

Frequently Asked Questions about AIFoundry MCP Connector

What is AIFoundry MCP Connector?

AIFoundry MCP Connector is a Model Context Protocol (MCP) server that mcp client and server apps to demo integration of azure openai-based ai agent with a data warehouse, exposed through graphql in microsoft fabric. It connects AI assistants to external tools and data sources through a standardized interface.

How do I install AIFoundry MCP Connector?

Follow the installation instructions on the AIFoundry MCP Connector GitHub repository. Clone the repo, install dependencies, and add the server config to your AI client.

Which AI clients work with AIFoundry MCP Connector?

AIFoundry MCP Connector works with all major MCP-compatible AI clients including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot), Windsurf, and Cline.

Is AIFoundry MCP Connector free to use?

Yes, AIFoundry MCP Connector is open source and available under the MIT license. You can use it freely in both personal and commercial projects.

Browse More Cloud Services MCP Servers

Explore all cloud services servers available in the MCPgee directory. Each server includes setup guides for Claude, Cursor, and VS Code.

Quick Config Preview

{ "mcpServers": { "aifoundry-mcpconnector-fabricgraphql": { "command": "npx", "args": ["-y", "aifoundry-mcpconnector-fabricgraphql"] } } }

Add this to your claude_desktop_config.json or .cursor/mcp.json

Read the full setup guide →

Ready to use AIFoundry MCP Connector?

Browse our complete directory of 33,000+ MCP servers, read setup guides for your editor, and start building with the Model Context Protocol.

33,000+ ServersFree & Open SourceStep-by-Step Guides