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.
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.
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
githuborgitlab - 🔤 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
acmeasacme-githubwith valueghp_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
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。