git-org-group-cred-vault

git-org-group-cred-vault

MCP server for securely managing GitHub & GitLab credentials in an encrypted vault, allowing AI agents to retrieve tokens by org or group name automatically.

Category
Visit Server

README

<div align="center">

git-org-group-cred-vault

MCP server for managing GitHub & GitLab credentials — store tokens in an encrypted vault and let AI agents retrieve them automatically by org or group name.

Node MCP License: MIT Platform: GitHub + GitLab

A self-hosted, AI-agent-ready credential manager for MCP clients like Zed, Claude Desktop, VS Code, and Cursor.

</div>


What is this?

git-org-group-cred-vault is an MCP (Model Context Protocol) server that keeps your GitHub and GitLab personal access tokens in a local, encrypted vault and retrieves them by keyword — typically the org or group name. AI agents resolve the right credential automatically during git operations instead of hardcoding secrets into prompts or config.

  • 🔐 Secure storage — tokens kept in a vault, never exposed in tool listings
  • Automatic resolution — say "push to acme-org", the agent fetches the matching token
  • 🧩 Per-project scoping — tokens can be global or scoped to a single repo
  • 🌐 Self-hosted — full control; works on Windows, Linux, macOS, and Docker/Unraid
  • 🏷️ Platform tagging — filter by github or gitlab
  • 🔤 Custom GitLab prefix support — handles self-hosted instances with custom prefixes (e.g. acmepat-)

Features

Capability Detail
Keyword lookup Find tokens by org name, group name, token prefix, or any keyword. Scoring prioritizes exact matches → substring matches → token overlap.
Dual scope Global (~/.git-org_group-cred-vault/) or project-scoped (.git-org_group-cred-vault/). Local tokens take precedence.
Bulk import Load a whole credential file in one call.
Platform tagged Each token tagged github or gitlab; filter as needed.

Tools

Tool Description
add_token Store a GitHub or GitLab credential for an org/group.
import_tokens Bulk-import multiple tokens from a plain-text file (tokenName token per line).
get_git_credential_for_org Main lookup tool. Call BEFORE any git push/clone/fetch when the user mentions an org or group. Returns the matching token.
list_tokens List all stored tokens (without exposing values). Shows name, platform, scope.
remove_token Delete a stored token by name.

Quick Start

1. Install

npm install
# or run directly:
node src/index.mjs

Requires Node.js ≥ 18 and an MCP-compatible host (Zed, Claude Desktop, VS Code, Cursor, etc.).

2. Add a token

From any MCP host, tell the agent:

Store my GitHub token for org acme as acme-github with value ghp_xxxxxxxxxxxxxxxxxxxx

Or call add_token directly:

Parameter Required Description
tokenName yes Name/keyword for lookup (e.g. org or group name)
token yes The actual token value
platform yes github or gitlab
org no GitHub org name (extra keyword)
group no GitLab group name (extra keyword)
prefix no GitLab custom token prefix (extra keyword)
scope no auto (default), project, or global

3. Retrieve a token

The tool fires automatically during git operations. Just say:

push to acme-org

The agent calls get_git_credential_for_org to resolve the credential before pushing.

Parameter Required Description
keywords yes Org name, group name, or any keyword to match
platform no github or gitlab to filter

4. Bulk import

Import a whole credential file at once:

import the tokens from path/to/token-list.txt

File format — one token per line, whitespace-separated:

acme-github ghp_xxxxxxxxxxxxxxxxxxxx
acme-gitlab glpat-xxxxxxxxxxxxxxxx
# lines starting with # are skipped

Platform is auto-detected: tokens starting with glpat-/wfbpat- are tagged gitlab, all others github.

Parameter Required Description
filePath yes Absolute path to the text file
scope no auto (default), project, or global
org no Org name attached to ALL imported tokens (extra keyword)

Scope & Storage

Scope Location
Global ~/.git-org_group-cred-vault/tokens.json
Project .git-org_group-cred-vault/tokens.json inside the repo
Auto (default) project if a local vault exists, otherwise global

Running on Unraid / Docker

Because it's a plain stdio MCP server, you can host it in any MCP gateway or container. On Unraid, run it inside mcpelevator (or any MCP gateway) and expose it to clients as an authenticated HTTP/SSE endpoint:

docker exec -it mcpelevator bash -c "cd /data/servers/git-org-group-cred-vault && npm install"

License

MIT

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
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
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
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
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

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

Qdrant Server

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

Official
Featured
E2B

E2B

Using MCP to run code via e2b.

Official
Featured