mcp -gravitino
MCP server for Apache Gravitino
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:
- Python 3.10+ installed
- uv (https://github.com/astral-sh/uv) installed
- Git installed
- Clone the repository
git clone git@github.com:datastrato/mcp-server-gravitino.git
- Navigate into the project directory
cd mcp-server-gravitino
- Create a virtual environment using uv
uv venv
- Activate the virtual environment
source .venv/bin/activate
- Install dependencies
uv install
- 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
mcp-vegalite
MCP server from isaacwasserman/mcp-vegalite-server
github-chat
A Model Context Protocol (MCP) for analyzing and querying GitHub repositories using the GitHub Chat API.
nautex
MCP server for guiding Coding Agents via end-to-end requirements to implementation plan pipeline
pagerduty
PagerDuty's official local MCP (Model Context Protocol) server which provides tools to interact with your PagerDuty account directly from your MCP-enabled client.
futu-stock
mcp server for futuniuniu stock
mcp -boilerplate
Boilerplate using one of the 'better' ways to build MCP Servers. Written using FastMCP