Get the FREE Ultimate OpenClaw Setup Guide →

mcp -gravitino

MCP server for Apache Gravitino

Installation
Run this command in your terminal to add the MCP server to Claude Code.
Run in terminal:
Command
claude mcp add --transport stdio datastrato-mcp-server-gravitino uv --directory /path/to/mcp-gravitino run --with fastmcp --with httpx --with mcp-server-gravitino python -m mcp_server_gravitino.server \
  --env GRAVITINO_URI="<YOUR_GRAVITINO_BASE_URL>" \
  --env GRAVITINO_METALAKE="<YOUR_METALAKE_NAME>" \
  --env GRAVITINO_PASSWORD="<YOUR_GRAVITINO_PASSWORD>" \
  --env GRAVITINO_USERNAME="<YOUR_GRAVITINO_USERNAME>" \
  --env GRAVITINO_JWT_TOKEN="<YOUR_GRAVITINO_JWT_TOKEN>"

How to use

This MCP server exposes a curated set of Gravitino APIs via the FastMCP integration. It provides tools for interacting with catalogs, schemas, tables, models, tags, and user-role management in a Gravitino-backed data environment. The server is started through UV in a managed virtual environment, wiring in FastMCP and HTTPX to enable efficient, asynchronous API calls. You can activate specific tools by configuring GRAVITINO_ACTIVE_TOOLS, or enable all tools with the default wildcard.

To operate, run the UV command as shown in the configuration. The server will start and expose endpoints that your clients can query to fetch metadata, assign tags, manage roles, and retrieve model information. The included tools are designed to return concise, relevant metadata suitable for downstream prompts and automations, while maintaining the semantic integrity of Gravitino APIs.

How to install

Prerequisites:

  1. Clone the repository
git clone git@github.com:datastrato/mcp-server-gravitino.git
  1. Navigate into the project directory
cd mcp-server-gravitino
  1. Create a virtual environment using uv
uv venv
  1. Activate the virtual environment
source .venv/bin/activate
  1. Install dependencies
uv install
  1. Run the server (example from README usage)
uv \
  --directory /path/to/mcp-gravitino \
  run \
  --with fastmcp \
  --with httpx \
  --with mcp-server-gravitino \
  python -m mcp_server_gravitino.server

Note: Adjust the directory path to your actual project location and ensure Gravitino-related environment variables are set as described in the Configuration section.

Additional notes

Tips and notes:

  • Ensure Gravitino URI and METALAKE are correctly configured; these are required for metadata operations.
  • You can switch between token-based and basic authentication by setting GRAVITINO_JWT_TOKEN or GRAVITINO_USERNAME/GRAVITINO_PASSWORD respectively.
  • Use GRAVITINO_ACTIVE_TOOLS to limit enabled tools for tighter token usage; default is * (all tools).
  • If you encounter connection issues, verify that GRAVITINO_URI is reachable from the host running the MCP server and that any firewall rules allow traffic.
  • The MCP toolset is optimized for concise metadata responses to stay within token limits during LLM interactions.

Related MCP Servers

Sponsor this space

Reach thousands of developers