mParticle MCP Server

mParticle MCP Server

Enables interaction with mParticle's Data Planning API to manage data plans, retrieve schemas, and govern data workflows via natural language.

Category
Visit Server

README

mParticle MCP Server

A Model Context Protocol (MCP) server that provides integration with mParticle's Data Planning API. This server allows Claude Desktop and other MCP-compatible clients to interact with your mParticle data plans, retrieve schemas, and manage data governance workflows.

šŸš€ Features

  • Data Plan Management: Retrieve all data plans or specific data plans by plan ID from your mParticle workspace
  • Authentication: Secure authentication with mParticle's API using client credentials stored as environment variables
  • Automatic Token Management: Handles bearer token refresh and expiration automatically
  • MCP Standard: Built using FastMCP framework for integration with Claude Desktop or other MCP clients.

šŸ“‹ Available Tools

get_all_data_plans

Retrieves all data plans for a specified workspace, including metadata like creation dates, descriptions, and plan status.

Parameters:

  • workspace_id (string): The mParticle workspace ID (required)

get_data_plan_by_id

Retrieves detailed information about a specific data plan, including version information and data plan elements.

Parameters:

  • workspace_id (string): The mParticle workspace ID (required)
  • data_plan_id (string): The data plan ID to retrieve (required)

get_api_status

Checks the configuration status of the mParticle API client and credentials.

šŸ› ļø Installation

Prerequisites

  • Python 3.12+: Ensure you have Python 3.12 or higher installed
  • Claude Desktop: Download and install from the official website
  • mParticle API Credentials: You'll need an API key and secret from your mParticle account

1. Clone and Setup the Project

git clone <repository-url>
cd mparticle_mcp_server

# Install dependencies using uv (recommended)
uv sync

# Or install using pip
pip install -e .

2. Environment Configuration

Create a .env file in the project root or set environment variables:

export MPARTICLE_API_KEY="your_mparticle_api_key"
export MPARTICLE_API_SECRET="your_mparticle_api_secret"

Getting mParticle API Credentials:

  1. Log into your mParticle dashboard
  2. Navigate to Settings > Setup > API Keys
  3. Create a new API key with Data Planning permissions
  4. Copy the Key ID (API Key) and Secret

3. Test the Server

Run the server directly to test the configuration:

python mp_data_plan.py

If configured correctly, you should see:

āœ… mParticle API client configured and ready
šŸš€ Starting MCP server...

šŸ”§ Claude Desktop Integration

To use this MCP server with Claude Desktop, you need to add it to your Claude Desktop configuration.

Configuration File Location

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json
  • Linux: ~/.config/Claude/claude_desktop_config.json

Configuration Setup

  1. Locate or create the configuration file at the path above for your operating system.

  2. Add the MCP server configuration:

{
  "mcpServers": {
    "mparticle": {
      "command": "uv",
      "args": [
        "run", 
        "python", 
        "/Users/nmattox/Documents/Apps & Scripts/gen_ai/mparticle_mcp_server/mp_data_plan.py"
      ],
      "env": {
        "MPARTICLE_API_KEY": "your_mparticle_api_key",
        "MPARTICLE_API_SECRET": "your_mparticle_api_secret"
      }
    }
  }
}

Important Notes:

  • Replace the path in args with the absolute path to your mp_data_plan.py file
  • Replace the environment variables with your actual mParticle API credentials
  • If you don't use uv, you can replace "command": "uv" with "command": "python" and adjust the args accordingly:
{
  "mcpServers": {
    "mparticle": {
      "command": "python",
      "args": [
        "/Users/nmattox/Documents/Apps & Scripts/gen_ai/mparticle_mcp_server/mp_data_plan.py"
      ],
      "env": {
        "MPARTICLE_API_KEY": "your_mparticle_api_key", 
        "MPARTICLE_API_SECRET": "your_mparticle_api_secret"
      }
    }
  }
}
  1. Restart Claude Desktop after saving the configuration file.

  2. Verify the installation:

    • Open Claude Desktop
    • Look for the šŸ”Œ plug icon next to the message input
    • Click it to see available MCP tools - you should see the mParticle tools listed

šŸ’” Usage Examples

Once integrated with Claude Desktop, you can use natural language to interact with your mParticle data:

Example Queries:

"Show me all data plans in workspace 12345 - provide summaries for each plan"

  • Claude will use the get_all_data_plans tool automatically to pull all data plans then create a summary

"Get details for data plan 'mobile-app-schema' in workspace 12345 - share a summary of all data elements and suggest possible mParticle use cases given the plan"

  • Claude will use the get_data_plan_by_id tool to pull the specific data plan, create a plan summary, then suggest possible use cases.

"Check if mParticle API is configured properly"

  • Claude will use the get_api_status tool

"Given my use case XYZ and data plan xyz-789 for workspace 12345 - what are suggested improvements I can make to the data plan?"

  • Claude will retrieve the data plan and suggest plan improvements given the use case

šŸ—ļø Project Structure

mparticle_mcp_server/
ā”œā”€ā”€ mp_data_plan.py       # Main MCP server with FastMCP tools
ā”œā”€ā”€ mparticle_api.py      # mParticle API client and authentication
ā”œā”€ā”€ main.py               # Simple test entry point
ā”œā”€ā”€ pyproject.toml        # Project dependencies and metadata
ā”œā”€ā”€ uv.lock              # Locked dependencies
└── README.md            # This file

šŸ”— Related Links

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured