Gigalixir & Turso & GitHub MCP Server

Gigalixir & Turso & GitHub MCP Server

A multi-service MCP server for Cloudflare Workers that enables managing Gigalixir apps, querying Turso databases, and handling GitHub repositories through natural language.

Category
Visit Server

README

Gigalixir & Turso & GitHub MCP Server

A ultra high-performance, multi-service Model Context Protocol (MCP) server built for deployment to Cloudflare Workers (or run as an ESM module anywhere). It includes pre-integrated support for managing Gigalixir apps, querying or executing transactions on Turso databases, and managing GitHub repositories, branches, actions, files, pull requests, and issues.


๐Ÿ“ฆ The 5 Essential Files to Push to GitHub

To deploy this MCP server to Cloudflare Workers, you only need to push the following 5 files to your GitHub repository:

  1. ๐Ÿ“„ src/worker.js โ€” The unified single-file MCP core handler containing security checks, tool registry, pipeline executors, and normalized gateways.
  2. ๐Ÿ“„ wrangler.toml โ€” Cloudflare Workers configuration file declaring compatibility flags and custom environment variables.
  3. ๐Ÿ“„ package.json โ€” Dependency definitions and standard wrangler control scripts (npm run build, npm run deploy).
  4. ๐Ÿ“„ README.md โ€” This documentation file explaining usage and setup instructions.
  5. ๐Ÿ“„ .gitignore โ€” Basic configuration to prevent pushing sensitive files, .wrangler/ builds, or node_modules.

๐Ÿš€ Setting Up & Deploying to Cloudflare Workers

1. Configure Secrets & Environment Variables

Make sure to prepare the following credentials (stored as Cloudflare Worker Secrets):

  • GIGALIXIR_EMAIL โ€” Your registered Gigalixir account email.
  • GIGALIXIR_API_KEY โ€” Your Gigalixir API Key (retrieved from Gigalixir CLI using gigalixir api_key:show).
  • TURSO_DB_URL โ€” The URL of your Turso database (e.g. libsql://yourdb-slug.turso.io).
  • TURSO_AUTH_TOKEN โ€” Your Turso database authorization bearer token.
  • GITHUB_TOKEN โ€” A GitHub Personal Access Token (classic or Fine-grained) with access to your repositories and pull requests.

2. Install & Deploy

Clone your GitHub repository and build:

# Install dependencies
npm install

# Log in to Cloudflare
npx wrangler login

# Set environment secrets securely on Cloudflare
npx wrangler secret put GIGALIXIR_EMAIL
npx wrangler secret put GIGALIXIR_API_KEY
npx wrangler secret put TURSO_DB_URL
npx wrangler secret put TURSO_AUTH_TOKEN
npx wrangler secret put GITHUB_TOKEN

# Deploy directly to Cloudflare edge edge network!
npx wrangler deploy

๐Ÿ› ๏ธ Integrated MCP Tools Breakdown

๐Ÿ”ด Gigalixir Management Tools

  • list_apps โ€” Lists all Gigalixir apps in your account.
  • get_app โ€” Gets details of a specific app.
  • get_configs & set_config & delete_config โ€” Retrieve, set, or delete environmental configs safely (with resilient backoff to support both singular and plural endpoint variants).
  • get_replicas & scale โ€” Read or scale your instance deployment replicas (scaling to 0 shuts down the instance).
  • list_releases & rollback โ€” Read release versions or rollback instantly.
  • restart โ€” Gracefully cycles app processes through standard sequence.
  • get_logs โ€” High-performance chunk-streaming log reader capped to a hard 3-second limit to guarantee zero MCP gateway timeouts.

๐Ÿ”ต Turso Database Tools

  • turso_query โ€” Execute read-only SQL SELECT queries with secure parameter parsing.
  • turso_execute โ€” Execute state-changing SQL operations (INSERT, UPDATE, DELETE, CREATE, DROP).
  • turso_list_tables โ€” List database master tables instantly.
  • turso_describe_table โ€” Query columns, schema metadata, types, constraints, and indexes.
  • turso_transaction โ€” Run multi-statement database transactions with integrated auto-rollback safety handlers if any query fails.

๐ŸŸข GitHub Workspace Tools

  • github_list_repos & github_get_repo โ€” Query user repository definitions and specs.
  • github_create_repo โ€” Create a new GitHub repository.
  • github_list_files & github_get_file โ€” Recurse, tree-walk, or read raw contents.
  • github_create_file & github_update_file & github_delete_file โ€” Create, update, or delete files securely with auto-resolved folder tree SHAs.
  • github_create_pr โ€” Generate pull requests between head and base branch tracks.

๐Ÿ›ก๏ธ Production-Grade AI DevOps & Safety Controls (New)

The MCP server incorporates advanced guardrails, observability, and orchestration layers to transition from a collection of raw tools to a safe, self-healing AI DevOps Agent system:

โš™๏ธ 1. Safety Guardrails & Access Rules

All state-changing operations are monitored by a local guardrail layer. Accidental or destructive acts are blocked unless explicit permission bypass is granted:

  • Outage Prevention: Scaling active deployment replicas pool size to 0 is blocked by default.
  • Secret Deletion Protection: Deleting configurations containing database strings, credentials, tokens, URLs, or security secrets is locked.
  • Database Guardrails: Destructive SQL commands (e.g., DROP TABLE, TRUNCATE) are blocked on custom executes.
  • Version Control Lock: Accidentally deleting core files from git via github_delete_file is locked.
  • How to Bypass: If you explicitly intend to execute a locked operation, pass the parameter "bypass_safety": true in the tool call.

๐Ÿงช 2. Universal Dry-Run Simulator

Before executing any state-altering operations (scaling, deleting configs, commits, rollbacks, SQL mutations), pass "dry_run": true to preview the actions. The tool will return a detailed simulation explanation and log the trace without changing any remote resources.

๐Ÿ“Š 3. Real-Time Observability & Auditing

  • audit_traces_list โ€” Retrieve real-time tracking logs of all executed actions, including timestamps, durations, statuses, targets, parameters (with sanitised pay-loads), and errors. Perfect for auditing AI operator behaviors.
  • get_system_safety_policies โ€” Standard endpoint to query current safety postures, rule sets, limits, and dry-run instructions.

๐Ÿš‚ 4. Core Orchestration Pipelines & Workflows

  • orchestrate_deploy_pipeline โ€” Performs complete end-to-end git-to-cloud deployments (verifies packages on GitHub, sets Gigalixir environments, triggers rolling restarts, and parses container health logs).
  • diagnose_and_repair_app โ€” Scans application runtimes, scales, and retrieves trailing log traces; detects crash loops or replicas drifts, and triggers self-healing cycles (e.g., scale recovery, graceful process recycles).

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
Qdrant Server

Qdrant Server

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

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