GigAPI MCP Server
Supports writing data using InfluxDB Line Protocol format to GigAPI's timeseries database, enabling seamless data ingestion from InfluxDB-compatible sources.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@GigAPI MCP Server show me the schema for the temperature_data table in mydb"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
GigAPI MCP Server
An MCP server for GigAPI Timeseries Lake that provides seamless integration with Claude Desktop and other MCP-compatible clients.
Features
GigAPI Tools
run_select_queryExecute SQL queries on your GigAPI cluster.
Input:
sql(string): The SQL query to execute,database(string): The database to execute against.All queries are executed safely through GigAPI's HTTP API with NDJSON format.
list_databasesList all databases on your GigAPI cluster.
Input:
database(string): The database to use for the SHOW DATABASES query (defaults to "mydb").
list_tablesList all tables in a database.
Input:
database(string): The name of the database.
get_table_schemaGet schema information for a specific table.
Input:
database(string): The name of the database,table(string): The name of the table.
write_dataWrite data using InfluxDB Line Protocol format.
Input:
database(string): The database to write to,data(string): Data in InfluxDB Line Protocol format.
health_checkCheck the health status of the GigAPI server.
pingPing the GigAPI server to check connectivity.
Related MCP server: A2A MCP Server
Quick Start
1. Install the MCP Server
Option A: From PyPI (Recommended)
# The package will be available on PyPI after the first release
# Users can install it directly with uv
uv run --with mcp-gigapi --python 3.11 mcp-gigapi --helpOption B: From Source
# Clone the repository
git clone https://github.com/gigapi/mcp-gigapi.git
cd mcp-gigapi
# Install dependencies
uv sync2. Configure Claude Desktop
Open the Claude Desktop configuration file located at:
On macOS:
~/Library/Application Support/Claude/claude_desktop_config.jsonOn Windows:
%APPDATA%/Claude/claude_desktop_config.json
Add the following configuration:
For the Public Demo (Recommended for Testing)
{
"mcpServers": {
"mcp-gigapi": {
"command": "uv",
"args": [
"run",
"--with",
"mcp-gigapi",
"--python",
"3.13",
"mcp-gigapi"
],
"env": {
"GIGAPI_HOST": "gigapi.fly.dev",
"GIGAPI_PORT": "443",
"GIGAPI_TIMEOUT": "30",
"GIGAPI_VERIFY_SSL": "true",
"GIGAPI_DEFAULT_DATABASE": "mydb"
}
}
}
}For Local Development
{
"mcpServers": {
"mcp-gigapi": {
"command": "uv",
"args": [
"run",
"--with",
"mcp-gigapi",
"--python",
"3.13",
"mcp-gigapi"
],
"env": {
"GIGAPI_HOST": "localhost",
"GIGAPI_PORT": "7971",
"GIGAPI_TIMEOUT": "30",
"GIGAPI_VERIFY_SSL": "false",
"GIGAPI_DEFAULT_DATABASE": "mydb"
}
}
}
}With Authentication
{
"mcpServers": {
"mcp-gigapi": {
"command": "uv",
"args": [
"run",
"--with",
"mcp-gigapi",
"--python",
"3.13",
"mcp-gigapi"
],
"env": {
"GIGAPI_HOST": "your-gigapi-server",
"GIGAPI_PORT": "7971",
"GIGAPI_USERNAME": "your_username",
"GIGAPI_PASSWORD": "your_password",
"GIGAPI_TIMEOUT": "30",
"GIGAPI_VERIFY_SSL": "true",
"GIGAPI_DEFAULT_DATABASE": "your_database"
}
}
}
}Important: Replace the
uvcommand with the absolute path to youruvexecutable:which uv # Find the pathRestart Claude Desktop to apply the changes.
API Compatibility
This MCP server is designed to work with GigAPI's HTTP API endpoints:
Query Endpoints
POST /query?db={database}&format=ndjson- Execute SQL queries with NDJSON response formatAll queries return NDJSON (Newline Delimited JSON) format for efficient streaming
Write Endpoints
POST /write?db={database}- Write data using InfluxDB Line Protocol
Administrative Endpoints
GET /health- Health checkGET /ping- Simple ping
Example Usage
Writing Data
Use InfluxDB Line Protocol format:
curl -X POST "http://localhost:7971/write?db=mydb" --data-binary @/dev/stdin << EOF
weather,location=us-midwest,season=summer temperature=82
weather,location=us-east,season=summer temperature=80
weather,location=us-west,season=summer temperature=99
EOFReading Data
Execute SQL queries via JSON POST with NDJSON format:
curl -X POST "http://localhost:7971/query?db=mydb&format=ndjson" \
-H "Content-Type: application/json" \
-d '{"query": "SELECT time, temperature FROM weather WHERE time >= epoch_ns('\''2025-04-24T00:00:00'\''::TIMESTAMP)"}'Show Databases/Tables
# Show databases
curl -X POST "http://localhost:7971/query?db=mydb&format=ndjson" \
-H "Content-Type: application/json" \
-d '{"query": "SHOW DATABASES"}'
# Show tables
curl -X POST "http://localhost:7971/query?db=mydb&format=ndjson" \
-H "Content-Type: application/json" \
-d '{"query": "SHOW TABLES"}'
# Count records
curl -X POST "http://localhost:7971/query?db=mydb&format=ndjson" \
-H "Content-Type: application/json" \
-d '{"query": "SELECT count(*), avg(temperature) FROM weather"}'Environment Variables
Required Variables
GIGAPI_HOST: The hostname of your GigAPI serverGIGAPI_PORT: The port number of your GigAPI server (default: 7971)
Optional Variables
GIGAPI_USERNAMEorGIGAPI_USER: The username for authentication (if required)GIGAPI_PASSWORDorGIGAPI_PASS: The password for authentication (if required)GIGAPI_TIMEOUT: Request timeout in seconds (default: 30)GIGAPI_VERIFY_SSL: Enable/disable SSL certificate verification (default: true)GIGAPI_DEFAULT_DATABASE: Default database to use for queries (default: mydb)GIGAPI_MCP_SERVER_TRANSPORT: Sets the transport method for the MCP server (default: stdio)GIGAPI_ENABLED: Enable/disable GigAPI functionality (default: true)
Example Configurations
For Local Development
# Required variables
GIGAPI_HOST=localhost
GIGAPI_PORT=7971
# Optional: Override defaults for local development
GIGAPI_VERIFY_SSL=false
GIGAPI_TIMEOUT=60
GIGAPI_DEFAULT_DATABASE=mydbFor Production with Authentication
# Required variables
GIGAPI_HOST=your-gigapi-server
GIGAPI_PORT=7971
GIGAPI_USERNAME=your_username
GIGAPI_PASSWORD=your_password
# Optional: Production settings
GIGAPI_VERIFY_SSL=true
GIGAPI_TIMEOUT=30
GIGAPI_DEFAULT_DATABASE=your_databaseFor Public Demo
GIGAPI_HOST=gigapi.fly.dev
GIGAPI_PORT=443
GIGAPI_VERIFY_SSL=true
GIGAPI_DEFAULT_DATABASE=mydbData Format
GigAPI uses Hive partitioning with the structure:
/data
/mydb
/weather
/date=2025-04-10
/hour=14
*.parquet
metadata.jsonDevelopment
Setup Development Environment
Install dependencies:
uv sync --all-extras --dev source .venv/bin/activateCreate a
.envfile in the root of the repository:GIGAPI_HOST=localhost GIGAPI_PORT=7971 GIGAPI_USERNAME=your_username GIGAPI_PASSWORD=your_password GIGAPI_TIMEOUT=30 GIGAPI_VERIFY_SSL=false GIGAPI_DEFAULT_DATABASE=mydbFor testing with the MCP Inspector:
fastmcp dev mcp_gigapi/mcp_server.py
Running Tests
# Run all tests
uv run pytest -v
# Run only unit tests
uv run pytest -v -m "not integration"
# Run only integration tests
uv run pytest -v -m "integration"
# Run linting
uv run ruff check .
# Test with public demo
python test_demo.pyTesting with Public Demo
The repository includes a test script that validates the MCP server against the public GigAPI demo:
python test_demo.pyThis will test:
✅ Health check and connectivity
✅ Database listing (SHOW DATABASES)
✅ Table listing (SHOW TABLES)
✅ Data queries (SELECT count(*) FROM table)
✅ Sample data retrieval
PyPI Publishing
This package is automatically published to PyPI on each GitHub release. The publishing process is handled by GitHub Actions workflows:
CI Workflow (
.github/workflows/ci.yml): Runs tests on pull requests and pushes to mainPublish Workflow (
.github/workflows/publish.yml): Publishes to PyPI when a release is created
For Users
Once published, users can install the package directly from PyPI:
# Install and run the MCP server
uv run --with mcp-gigapi --python 3.11 mcp-gigapiFor Maintainers
To publish a new version:
Update the version in
pyproject.tomlCreate a GitHub release
The workflow will automatically publish to PyPI
See RELEASING.md for detailed release instructions.
Troubleshooting
Common Issues
Connection refused: Check that GigAPI is running and the host/port are correct
Authentication failed: Verify username/password are correct
SSL certificate errors: Set
GIGAPI_VERIFY_SSL=falsefor self-signed certificatesNo databases found: Ensure you're using the correct default database (usually "mydb")
Debug Mode
Enable debug logging by setting the log level:
import logging
logging.basicConfig(level=logging.DEBUG)License
Apache-2.0 license
Contributing
Fork the repository
Create a feature branch
Make your changes
Add tests
Submit a pull request
Support
Issues: GitHub Issues
Documentation: GigAPI Documentation
Available Tools
7 toolsget_table_schemaC
Get schema information for a specific table.
Inputs: input_data (required).
health_checkC
Check the health status of the GigAPI server.
Inputs: _ (required).
list_databasesB
List all databases on your GigAPI cluster.
Inputs: input_data (required).
list_tablesB
List all tables in a database.
Inputs: database (required).
pingC
Ping the GigAPI server to check connectivity.
Inputs: _ (required).
run_select_queryC
Execute SQL queries on your GigAPI cluster. All queries are executed safely.
Inputs: sql (required), database (required).
write_dataC
Write data using InfluxDB Line Protocol format.
Inputs: database (required), data (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 7 tools
Most tools target distinct actions (schema, listing, query, write), but health_check and ping both relate to server connectivity, causing slight potential confusion despite different phrasing.
Snake_case is used consistently, but the verb_noun pattern is not uniform: 'health_check' is a compound noun and 'ping' is a bare verb, while others use verb_noun. This is a minor inconsistency.
Seven tools is well-scoped for a database API server—covering schema inspection, listing, querying, writing, and health checks—without being excessive or insufficient.
The set covers basic CRUD (read and write) and schema discovery, but lacks DDL tools (create/alter/drop tables or databases) and data deletion, leaving notable gaps for full life-cycle management.
Related MCP Connectors
MCP server unifying ERPs, CRMs, APIs and knowledge base for Claude, ChatGPT and Gemini.
MCP server providing attendance data queries via the CloudTime API.
MCP server for querying and analyzing data from ad platforms, analytics tools, and spreadsheets
MCP server for progressive tool usage at any scale (see https://klavis.ai)
Related MCP Servers
AlicenseNot gradedqualityNot gradedmaintenanceAn MCP server that integrates Verodat's data management capabilities with AI systems like Claude Desktop, enabling users to manage accounts, workspaces, and datasets, as well as perform AI-powered queries on their data.9 npm4-- FlicenseBqualityDmaintenanceAn MCP server that enables Claude Desktop to communicate with A2A protocol agents, allowing Claude to access extended capabilities through agent interactions.322-

headlo-mcpofficial
AlicenseCqualityDmaintenanceMCP server that provides Claude Desktop and Claude Code with access to Headlo collections, records, pages, components, and CAP sessions.2521 npmElastic 2.0- AlicenseNot gradedqualityDmaintenanceA modern MCP server that provides Claude Desktop with the ability to store and retrieve personal information locally.1MIT