Agent skill

Use Gfs MCP

by Guepard-Corp in Guepard-Corp/gfs

GFS MCP Server for AI agent integration. An agent skill from Guepard-Corp/gfs.

MITAuto-check passedAgent Workflows

Install Use Gfs MCP

skills CLI
$ npx skills add Guepard-Corp/gfs --skill use-gfs-mcp -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install Guepard-Corp/gfs use-gfs-mcp --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/Guepard-Corp/gfs.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/use-gfs-mcp .claude/skills/use-gfs-mcp && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
use-gfs-mcp
GitHub stars
158
Token cost
~4k tokens
SKILL.md length
1,933 words
Files
1
Skills in repo
1
Repo updated
First seen
Licence
MIT

At a glance

GFS MCP Server for AI agent integration. An agent skill from Guepard-Corp/gfs.

  • Works in 12 steps: Verify GFS CLI is installed → Configure MCP Server → Start MCP Server → …
  • Tasks that involve MCP servers
  • SKILL.md covers Supported Databases, Installation, Quick Start and Revision References, plus 2 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Use Gfs MCP is an agent skill from Guepard-Corp/gfs. GFS MCP Server for AI agent integration. Provides Model Context Protocol tools for database version control with automatic schema versioning.

Its SKILL.md is about 4k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Agent Workflows, covering MCP servers and Git workflow. It works with Model Context Protocol, MySQL, PostgreSQL and ClickHouse. The repository describes itself as: Git For database Systems. The licence is MIT.

When your agent uses it

  • Tasks that involve MCP servers
  • Tasks that involve Git workflow

Example prompts

  • “/use-gfs-mcp”

Workflow steps

12 steps, taken from the step headings in SKILL.md.

  1. Verify GFS CLI is installed
  2. Configure MCP Server
  3. Start MCP Server
  4. Check Available Tools
  5. Verify Repository Status
  6. List Providers
  7. Initialize Repository
  8. Check Status
  9. Commit Changes
  10. View History
  11. Create and Switch Branches
  12. Database Container Management

What it can do on your machine

Read from SKILL.md and the folder at commit e51fc61. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md (its code samples are bash and javascript).

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Use Gfs MCP loads about 4k tokens when it runs. Until then it costs about 38 tokens; SKILL.md has 1,933 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~38
When it runs · the whole SKILL.md, loaded when a task matches
~4k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from Guepard-Corp/gfs at commit e51fc61, republished under its MIT licence (© Guepard-Corp). 1,933 words, ~3,980 tokens.

Download SKILL.mdSave it as .claude/skills/use-gfs-mcp/SKILL.md (or your agent's skills folder).
name
use-gfs-mcp
description
GFS MCP Server for AI agent integration. Provides Model Context Protocol tools for database version control with automatic schema versioning.

GFS MCP Server

GFS provides an MCP (Model Context Protocol) server for AI agent integration, enabling programmatic access to database version control operations including commits, branches, time travel, and schema versioning.

Supported Databases

  • PostgreSQL (versions 13-18)
  • MySQL (versions 8.0-8.1)
  • SQLite (version 3) — file-based; needs no container runtime

With SQLite, init, commit, log, status, checkout, extract_schema, show_schema, diff_schema, export_database, import_database and query all work with no container runtime running. compute and user do not apply: there is no server to start and no roles to manage.

Installation

1. Verify GFS CLI is installed

The MCP server requires the GFS CLI to be installed on the host system.

2. Configure MCP Server

Add GFS to your MCP client configuration (e.g., Claude Desktop, custom MCP client). The MCP server runs as: gfs mcp

Configuration requires:

  • Command: Path to gfs binary
  • Args: ["mcp"]
  • Optional: GFS_REPO_PATH environment variable

Quick Start

1. Start MCP Server

The server starts automatically when configured in your MCP client. It provides access to all GFS operations through MCP tools.

2. Check Available Tools

The MCP server exposes 14 tools for database version control operations. All tools accept an optional path parameter to specify repository location.

3. Verify Repository Status

Use the status tool to check repository state, current branch, HEAD commit, and database container status.

Revision References

GFS supports Git-style revision notation in all tools that accept commit references (checkout, show_schema, diff_schema, log):

Basic Formats
  • HEAD - Current commit
  • main - Branch tip (any branch name)
  • abc123def456... - Full commit hash (64 characters)
Tilde Notation (Ancestor References)

Reference ancestor commits using ~ notation:

  • HEAD~1 - Parent of HEAD (previous commit)
  • HEAD~5 - 5th ancestor of HEAD
  • main~3 - 3 commits before main branch tip
  • abc123~2 - 2nd parent of commit abc123
  • HEAD~ - Same as HEAD~1 (defaults to 1)
MCP Tool Usage Examples
javascript
// Checkout previous commit
checkout({ revision: "HEAD~1" })

// Compare schema with 5 commits ago
diff_schema({ commit1: "HEAD~5", commit2: "HEAD" })

// View schema from 3 commits back
show_schema({ commit: "main~3" })

// Show ancestor schema
show_schema({ commit: "abc123def456...~2" })

// View log from ancestor to current
log({ from: "HEAD~10", until: "HEAD" })

Core Workflow

Best Practices

CRITICAL: Always use the commit tool before database mutations. This enables rollback if issues occur.

Commits automatically capture database schema at commit time, providing complete versioning of both data and structure.

1. List Providers

Tool: list_providers

Lists all supported database providers, versions, and available features. No parameters required.

Returns: Array of providers with supported versions and feature lists.

2. Initialize Repository

Tool: init

Creates a new GFS repository with specified database provider and version.

Parameters:

  • database_provider (required) - Provider name (postgres, mysql)
  • database_version (required) - Version string (e.g., "17", "8.0")
  • path (optional) - Repository location

Returns: Repository path and initialization status.

3. Check Status

Tool: status

Gets repository and database container status including current branch, HEAD commit, and connection information.

Parameters:

  • path (optional) - Repository location

Returns: current_branch, head_commit (absent before the first commit), active_workspace_data_dir, and compute when a container is configured. For SQLite, connection_string is a sqlite: URL to the file in the active workspace and there is no compute section.

gfs status reports the same fields from the same source, so the CLI and this tool cannot disagree.

4. Commit Changes

Tool: commit

Creates snapshot of database state, automatically capturing schema at commit time.

Parameters:

  • message (required) - Commit message
  • path (optional) - Repository location
  • author (optional) - Author name
  • author_email (optional) - Author email

Returns: Commit hash.

Automatic Schema Versioning: Every commit captures database schema including structured metadata and native DDL.

5. View History

Tool: log

Views commit history with optional filtering.

Parameters:

  • path (optional) - Repository location
  • max_count (optional) - Limit number of commits
  • from (optional) - Starting revision
  • until (optional) - Ending revision

Returns: Array of commits with metadata, timestamps, authors, and references.

6. Create and Switch Branches

Tool: checkout

Switches to existing branch, specific commit, or creates new branch.

Parameters:

  • revision (required) - Branch name or commit hash
  • path (optional) - Repository location
  • create_branch (optional) - Name of a new branch to create and switch to. A string, not a boolean: create_branch: true is rejected with invalid type: boolean, expected a string

Returns: Success status and checked out revision.

Tip: For branch listing and creation without switching, use the CLI with --json:

shell
# List branches programmatically
gfs branch

# Create branch from checkpoint without switching
gfs branch release/v1.0 <commit_hash>

# Delete a branch
gfs branch -d old-feature
7. Database Container Management

Tool: compute

Manages database container lifecycle.

Parameters:

  • action (required) - Operation: status, start, stop, restart, pause, unpause, logs
  • path (optional) - Repository location
  • logs_tail (optional, logs only) - Number of lines to show
  • logs_since (optional, logs only) - Timestamp filter

Returns: Status information or log output based on action.

Actions:

  • status - Container state and metadata
  • start - Start stopped container
  • stop - Stop running container
  • restart - Restart container
  • pause - Pause container (keeps state in memory)
  • unpause - Resume paused container
  • logs - View container logs
8. Query Database

Tool: query

Executes SQL queries against the database or returns connection information.

Parameters:

  • query (optional) - SQL query to execute (omit for connection info)
  • path (optional) - Repository location
  • database (optional) - Override database name. Not accepted for SQLite: the file is the database, so there is nothing to select, and passing it is an error rather than a silently ignored argument.

Returns: Query results or connection information if no query provided. For SQLite the connection information is a sqlite: URL to the file in the active workspace, with no host or port.

This tool runs the database's own client on the host — psql, mysql, sqlite3 — so that binary must be installed. Nothing else in this list needs it: GFS reads SQLite through a linked engine.

9. Schema Operations
Extract Current Schema

Tool: extract_schema

Extracts schema from running database, returning structured metadata.

Parameters:

  • path (optional) - Repository location

Returns: Complete schema metadata including schemas, tables, columns, constraints, and relationships as structured JSON.

Use case: Understand current database structure before making changes or writing queries.

Show Schema from Commit

Tool: show_schema

Views database schema as it existed at any commit in history.

Parameters:

  • commit (required) - Commit hash or reference (HEAD, main, branch name)
  • path (optional) - Repository location
  • metadata_only (optional) - Return only JSON metadata
  • ddl_only (optional) - Return only SQL DDL

Returns: Schema object with hash, metadata, and/or DDL based on flags.

Output includes:

  • Schema hash (content-addressed identifier)
  • Database driver and version
  • Structured metadata (schemas, tables, columns with types and constraints)
  • Native DDL dump (CREATE TABLE statements)

Use case: View schema at any point in history, document database structure, audit schema changes.

Compare Schemas

Tool: diff_schema

Tracks schema evolution by comparing schemas between two commits.

Parameters:

  • commit1 (required) - First commit hash or reference
  • commit2 (required) - Second commit hash or reference
  • path (optional) - Repository location

Both commit1 and commit2 accept rev~n notation for ancestor references (e.g., HEAD~5, main~3).

Returns: Schema comparison with hashes, table/column count changes, and difference summary.

Comparison includes:

  • Schema hash equality check
  • Table count changes
  • Column count changes
  • Summary of additions/removals

Use case: Review schema changes before merging branches, track schema evolution, identify breaking changes.

10. Import/Export Data
Export Database

Tool: export_database

Exports database data to file.

Parameters:

  • format (required) - Export format (sql, custom)
  • path (optional) - Repository location
  • output_dir (optional) - Output directory path

Returns: Export file path and status.

Supported formats:

  • sql - Plain SQL dump
  • custom - Database-specific binary format (PostgreSQL pg_dump custom format)
Import Database

Tool: import_database

Imports data from file into database.

Parameters:

  • file (required) - Path to import file
  • path (optional) - Repository location
  • format (optional) - Data format (sql, csv, json, custom)

Returns: Import status.

Supported formats: SQL, CSV, JSON, custom (database-specific formats).

Show full SKILL.md (770 more words)Show less

Common Workflows

Schema-Aware Development

Track schema changes alongside code changes for complete version control.

Workflow:

  1. Use status to verify repository and container state
  2. Use show_schema to view current schema structure
  3. Use checkout with create_branch: "<name>" to create a feature branch
  4. Make schema changes via query tool
  5. Use commit to capture changes (schema automatically versioned)
  6. Use diff_schema to compare with main branch
  7. Review differences before merging
Schema Evolution Tracking

Monitor how database schema changes over time.

Workflow:

  1. Use log to view commit history
  2. Use show_schema on different commits to see schema at each point
  3. Use diff_schema to compare schemas across time periods
  4. Identify when tables/columns were added or modified
  5. Document schema migrations based on commit history
Rollback to Previous State

Restore database to earlier state when issues occur.

Workflow:

  1. Use log to find target commit
  2. Use show_schema to verify schema at that commit
  3. Use checkout to switch to specific commit
  4. Use status to verify state
  5. Use query to validate data
  6. Use checkout with create_branch: "<name>" if state is correct
Schema Migration Planning

Plan database migrations by comparing schemas.

Workflow:

  1. Use show_schema on production commit
  2. Use show_schema on feature branch
  3. Use diff_schema to identify all schema changes
  4. Review table and column count differences
  5. Plan migration steps based on differences
  6. Test migration in isolated branch
Automated Schema Documentation

Generate documentation from schema history.

Workflow:

  1. Use log to get list of releases or major versions
  2. Use show_schema with metadata_only for each version
  3. Parse schema metadata to extract table and column information
  4. Use diff_schema between versions to identify breaking changes
  5. Generate documentation highlighting evolution

Troubleshooting

Database Container Not Running

Use compute with action status to check container state. If stopped, use action start to start container. Use action logs to view error messages if container fails to start.

Connection Issues

Use status tool to get connection information. Ensure container is running via compute status. Verify ports are available (PostgreSQL: 5432, MySQL: 3306).

Repository Not Found

Ensure path parameter points to directory with .gfs folder, or set GFS_REPO_PATH environment variable in MCP server configuration.

Schema Not Available

If show_schema returns error about missing schema, the commit was created before schema versioning was enabled. Use extract_schema to capture current schema, then create new commit.

Tool Execution Fails

Check that GFS CLI is installed on the MCP server host. For a container-backed provider, verify the container runtime is running; SQLite needs none. Review the error message in the tool response — the tools name the actual problem.

CLI Fallback with --json

When MCP tools are unavailable or you need operations not yet exposed as MCP tools (e.g., branch management, graph log), use the GFS CLI with --json for structured output:

shell
# Structured commit output
gfs --json commit -m "checkpoint before migration"
# → {"hash":"b57732d8...","branch":"main","message":"checkpoint before migration"}

# Structured checkout output
gfs --json checkout -b feature/migration
# → {"hash":"b57732d8...","branch":"feature/migration","new_branch":true}

# Repository status (JSON)
gfs --json status

# Branch listing (JSON)
gfs --json branch

# Branch topology graph
gfs log --graph --all

Exit codes for conditional logic:

  • gfs status → 0 (compute running, or an embedded provider with no compute at all) or 1 (a container-backed provider whose compute is down)
  • gfs schema diff → 0 (no changes), 1 (changes), 2 (breaking)

Key Reminders

  1. Always commit before mutations - Create safety checkpoints with automatic schema capture
  2. Schema automatically versioned - Every commit captures complete database schema
  3. Use diff_schema before merging - Review schema changes between branches
  4. Check status first - Verify repository and container state before operations
  5. Path parameter - Specify repository location or set GFS_REPO_PATH
  6. A container-backed provider needs its container running - postgres, mysql and clickhouse operations require an active container. SQLite does not: it is a file this process opens, and compute has nothing to start
  7. Show_schema for documentation - Use to document database structure at any point
  8. Extract_schema for current state - Capture current schema without commit
  9. Tool responses are structured - Parse JSON responses for programmatic access
  10. Use --json for CLI fallback - When MCP tools aren't available, CLI with --json gives structured output

Environment Variables

  • GFS_REPO_PATH - Default repository path for MCP server
  • Set in MCP server configuration environment section
  • When set, tools use this as default if path parameter omitted

Schema Versioning Features

Every commit operation automatically:

  1. Extracts current database schema (metadata + DDL)
  2. Stores schema as content-addressed object
  3. Links schema hash to commit
  4. Enables time-travel schema viewing via show_schema

Schema storage:

  • Content-addressed: Identical schemas share same hash (deduplication)
  • Dual format: JSON metadata + SQL DDL stored together
  • Immutable: Content addressing ensures integrity
  • Fast comparison: Compare via hash equality

Schema metadata includes:

  • Database driver and version
  • Schemas/namespaces
  • Tables with sizes and row estimates
  • Columns with types, constraints, and defaults
  • Relationships and indexes

Schema DDL includes:

  • CREATE TABLE statements
  • Indexes and constraints
  • Triggers and views
  • Database-specific syntax

© Guepard-Corp, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in skills/use-gfs-mcp of Guepard-Corp/gfs.

Open the folder on GitHubat commit e51fc61

Compare with similar skills

Use Gfs MCP next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Use Gfs MCP compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Use Gfs MCP this skillGuepard-Corp/gfs158—~4kAutomated safety check: PassMIT
Lunoraanolilab/lunora284—~2.6kAutomated safety check: PassCustom licence
Semantic Analystsidequery/sidemantic129—~982Automated safety check: PassAGPL-3.0
Debug Failed Runactivepieces/activepieces25k—~3.7kAutomated safety check: WarnCustom licence
Aurora Dsqlaws/agent-toolkit-for-aws2.8k—~9.6kAutomated safety check: PassApache-2.0
Database Rds Devopsaws/tools-for-devops-agent103—~4.4kAutomated safety check: PassApache-2.0

Similar skills

  • Lunora

    anolilab/lunora

    Routes general Lunora requests to the right Lunora skill and gives the shared mental model (codegen loop, generated api/internal references, review commands, add-on capabilities, the @lunora/mcp…

    284 GitHub stars~2.6k tokensUpdated today
    Backend & APIsAuto-check passed
  • Semantic Analyst

    sidequery/sidemantic

    Answer analytical, KPI, metric, trend, cohort, and business-performance questions through a Sidemantic semantic layer.

    129 GitHub stars~982 tokensUpdated 3 days ago
    DatabasesAuto-check passed
  • Debug Failed Run

    activepieces/activepieces

    Debug a failed Activepieces flow run end-to-end: given a flow run id (or BullMQ job id), find why it failed, cross-referencing the live BullMQ job + Postgres rows (SSH script on the DevOps box), the…

    25k GitHub stars~3.7k tokensUpdated today
    DatabasesAuto-check: warnings
  • Aurora Dsql

    aws/agent-toolkit-for-aws

    Official

    Provisions and manages Aurora DSQL clusters, connects via psql or DSQL Connectors, manages schemas, runs queries, migrates from MySQL, diagnoses query plans, and develops apps on serverless…

    2.8k GitHub stars~9.6k tokensUpdated yesterday
    Backend & APIsAuto-check passed
  • Database Rds Devops

    aws/tools-for-devops-agent

    Official

    Database-level data-plane diagnostics for Aurora MySQL and Aurora PostgreSQL.

    103 GitHub stars~4.4k tokensUpdated yesterday
    DatabasesAuto-check passed
  • Relational Database MCP Cloudbase

    TencentCloudBase/CloudBase-AI-Toolkit

    [Deprecated] This is the required documentation for agents operating on the CloudBase Relational Database through MCP.

    1.1k GitHub stars~2.7k tokensUpdated yesterday
    DatabasesAuto-check passed

Questions about Use Gfs MCP

What does Use Gfs MCP do?

GFS MCP Server for AI agent integration. An agent skill from Guepard-Corp/gfs. Use Gfs MCP is an agent skill from Guepard-Corp/gfs. GFS MCP Server for AI agent integration.

When should I use Use Gfs MCP?

Use Gfs MCP fits situations like: tasks that involve MCP servers; tasks that involve Git workflow.

How do I install Use Gfs MCP in Claude Code?

Run `npx skills add Guepard-Corp/gfs --skill use-gfs-mcp -a claude-code`. Or copy the skill folder (skills/use-gfs-mcp in Guepard-Corp/gfs) into .claude/skills/use-gfs-mcp in your project. Claude Code loads it when a task matches its description.

How do I install Use Gfs MCP in Codex?

Run `npx skills add Guepard-Corp/gfs --skill use-gfs-mcp -a codex`. Or copy the skill folder (skills/use-gfs-mcp in Guepard-Corp/gfs) into .agents/skills/use-gfs-mcp in your project. Codex loads it when a task matches its description.

Can I use Use Gfs MCP in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add Guepard-Corp/gfs --skill use-gfs-mcp -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/use-gfs-mcp, .gemini/skills/use-gfs-mcp, .github/skills/use-gfs-mcp and .opencode/skills/use-gfs-mcp in your project.

What does Use Gfs MCP need to run?

SKILL.md names no scripts, command-line tools or credentials: Use Gfs MCP is instructions for the agent only.

Does Use Gfs MCP access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Use Gfs MCP safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Use Gfs MCP use?

Use Gfs MCP is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Use Gfs MCP use?

About 4k tokens (SKILL.md is roughly 16k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Use Gfs MCP?

Skills that share tags, products or a category with Use Gfs MCP: Lunora (anolilab/lunora, 284 stars), Semantic Analyst (sidequery/sidemantic, 129 stars), Debug Failed Run (activepieces/activepieces, 25k stars) and Aurora Dsql (aws/agent-toolkit-for-aws, 2.8k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Use Gfs MCP?

Guepard-Corp (a GitHub organization) maintains it in Guepard-Corp/gfs, which has 158 GitHub stars. The repository was last updated on October 8, 2026.

Source: Guepard-Corp/gfs on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.