Transform stdio-based MCP servers into a first‑class CLI tool.
Universal MCP Sync
By nawodyaishan
Universal MCP Sync (usync) is a local-first MCP configuration manager for developers who use multiple AI clients.
- Views
- 2
- Repository stars
- 7
- Platforms
- macOS, Linux
- Workspace
- CLI
Platforms
macOS, Linux
Configuration guide
Universal MCP Sync (usync) is a local-first MCP configuration manager for developers who use multiple AI clients.
Configure an MCP server once, preview every file that would change, then sync native client config files for Claude Desktop, Claude Code, Cursor, VS Code, Windsurf, Zed, Roo Code, OpenCode, Kiro, Gemini CLI, Antigravity, and Codex CLI.
> [!IMPORTANT]
> Help grow the supported MCP list. If you maintain or rely on an MCP server, add it as a provider instead of documenting manual JSON edits. Start with Adding an MCP Provider, implement the MCPProvider contract, register it, and cover the client matrix with tests.
>
> Contributor baseline before a provider PR: make fmt, make test, and make gitignore-check. For provider/client compatibility changes, also run make lint and make verify.
| MCP server | Capability | Transport | Auth shape | Status |
|---|---|---|---|---|
| Exa AI Search | Web search and retrieval for agents | HTTP | API key in URL query | Stable |
| Context7 | Current library docs and code examples | Streamable HTTP | CONTEXT7_API_KEY header |
Stable |
| GitHub | Repository, issue, and PR workflows | Stdio via npx |
GITHUB_PERSONAL_ACCESS_TOKEN env var |
Beta |
| Tavily Search | Real-time web search and data extraction | Stdio via npx |
TAVILY_API_KEY env var |
Stable |
| Playwright | Browser automation through accessibility snapshots | Stdio via npx |
None | Stable |
| Kubernetes | Read-only Kubernetes and OpenShift runtime state | Stdio via npx |
None; uses kubeconfig/RBAC | Beta |
| Terraform | Terraform Registry and HCP Terraform context | Stdio via Docker | None required; operations disabled by default | Beta |
| CodeGraph | Semantic code intelligence — call graphs, symbol maps, cross-file deps | Stdio via npx |
None; fully local | Stable |
The provider system is intentionally generic. New MCP servers are added through MCPProvider, then adapted per client through the capability matrix instead of branching the TUI or apply flow.
Universal MCP Sync
Universal MCP Sync (usync) is a local-first MCP configuration manager for developers who use multiple AI clients.
Configure an MCP server once, preview every file that would change, then sync native client config files for Claude Desktop, Claude Code, Cursor, VS Code, Windsurf, Zed, Roo Code, OpenCode, Kiro, Gemini CLI, Antigravity, and Codex CLI.
> [!IMPORTANT]
> Help grow the supported MCP list. If you maintain or rely on an MCP server, add it as a provider instead of documenting manual JSON edits. Start with Adding an MCP Provider, implement the MCPProvider contract, register it, and cover the client matrix with tests.
>
> Contributor baseline before a provider PR: make fmt, make test, and make gitignore-check. For provider/client compatibility changes, also run make lint and make verify.
Supported MCPs
| MCP server | Capability | Transport | Auth shape | Status |
|---|---|---|---|---|
| Exa AI Search | Web search and retrieval for agents | HTTP | API key in URL query | Stable |
| Context7 | Current library docs and code examples | Streamable HTTP | CONTEXT7_API_KEY header |
Stable |
| GitHub | Repository, issue, and PR workflows | Stdio via npx |
GITHUB_PERSONAL_ACCESS_TOKEN env var |
Beta |
| Tavily Search | Real-time web search and data extraction | Stdio via npx |
TAVILY_API_KEY env var |
Stable |
| Playwright | Browser automation through accessibility snapshots | Stdio via npx |
None | Stable |
| Kubernetes | Read-only Kubernetes and OpenShift runtime state | Stdio via npx |
None; uses kubeconfig/RBAC | Beta |
| Terraform | Terraform Registry and HCP Terraform context | Stdio via Docker | None required; operations disabled by default | Beta |
| CodeGraph | Semantic code intelligence — call graphs, symbol maps, cross-file deps | Stdio via npx |
None; fully local | Stable |
The provider system is intentionally generic. New MCP servers are added through MCPProvider, then adapted per client through the capability matrix instead of branching the TUI or apply flow.
Why This Exists
MCP client configuration is fragmented. Each AI client stores different JSON or TOML, uses different root keys, and handles transports differently. Manually copying credentials into those files is slow, hard to review, and easy to get wrong.
> [!NOTE]
> Terraform-inspired: usync borrows Terraform's provider pattern and init -> plan -> apply workflow. The core setup, preview, and apply path stays generic while each MCP provider owns its credentials, validation, and generated transport config.
usync focuses on the native-config sync path:
-
Two guided modes: Doctor Mode for system-aware setup and Wizard Mode for direct provider-first setup.
-
Dry-run first so users see exact target files, actions, and redacted credentials before writes.
-
Client-aware output for
mcpServers,servers,context_servers,httpUrl,serverUrl, TOML, and stdio bridges. Clients that use JSONC (JSON with comments) are handled transparently — existing comments are preserved on write. -
Local safety controls with redaction, same-directory backups, atomic writes, rollback, and verification.
-
Provider architecture for adding more MCP servers without special-casing the UI.
Install
macOS with Homebrew:
brew tap nawodyaishan/homebrew-tap
brew install usync
From source:
git clone https://github.com/nawodyaishan/universal-mcp-sync
cd universal-mcp-sync
make build
./bin/usync --help
Requirements for source builds:
- Go 1.23+
- macOS or Linux for full local client path detection
Supported Clients
usync detects and updates native config files for these macOS and Linux targets:
| Client | macOS target | Linux target |
|---|---|---|
| Claude Desktop | ~/Library/Application Support/Claude/claude_desktop_config.json |
~/.config/Claude/claude_desktop_config.json |
| Claude Code | Managed through claude mcp CLI when available |
Managed through claude mcp CLI when available |
| Cursor | ~/.cursor/mcp.json |
~/.cursor/mcp.json |
| VS Code | ~/.vscode/mcp.json |
~/.config/Code/User/mcp.json |
| Windsurf | ~/.codeium/windsurf/mcp_config.json |
~/.codeium/mcp_config.json, with existing ~/.codeium/windsurf/mcp_config.json preserved |
| Zed | ~/.config/zed/settings.json |
~/.config/zed/settings.json |
| Roo Code | ~/Library/Application Support/Code/User/globalStorage/saoudrizwan.claude-dev/settings/mcp_settings.json |
~/.config/Code/User/globalStorage/saoudrizwan.claude-dev/settings/mcp_settings.json |
| OpenCode | ~/.opencode.json |
~/.config/opencode/opencode.json |
| Kiro | ~/.kiro/settings/mcp.json |
~/.kiro/settings/mcp.json |
| Gemini CLI | ~/.gemini/settings.json and ~/.gemini/mcp_config.json |
~/.gemini/settings.json |
| Antigravity | ~/.gemini/config/mcp_config.json |
~/.gemini/config/mcp_config.json |
| Codex CLI | ~/.codex/config.toml |
~/.codex/config.toml |
A dry run always shows the exact path on your machine before any write.
Go Library Usage
The core logic is available under pkg/. The API is pre-stable and may change before v2.0.
import (
"fmt"
"github.com/nawodyaishan/universal-mcp-sync/pkg/app"
"github.com/nawodyaishan/universal-mcp-sync/pkg/config"
"github.com/nawodyaishan/universal-mcp-sync/pkg/provider"
)
func main() {
manager, err := app.NewManager("/custom/home", nil, nil)
if err != nil {
panic(err)
}
prov := provider.NewContext7Provider()
profiles := []provider.CredentialProfile{{
ProviderID: prov.ID(),
Values: map[string]string{"CONTEXT7_API_KEY": "YOUR_SECRET_KEY"},
Label: "docs",
}}
selected := map[config.AppID]bool{config.AppCursor: true}
assignments := map[config.AppID]int{config.AppCursor: 0}
plan, err := manager.PrepareProvider(prov, profiles, selected, assignments)
if err != nil {
panic(err)
}
result, err := manager.Apply(plan)
if err != nil {
fmt.Printf("apply failed: %v\n", err)
}
fmt.Printf("updated %d targets\n", len(result.UpdatedTargets))
}
Documentation
OpenSeek - 广度求索: open-source TUI coding agent with multi-provider routing, MCP, LSP, and Plan/Agent/YOLO modes.
AdaL is an AI agent for video: launch films, product demos and UGC ads. This is the community home for the AdaL CLI. adalagent.ai
Open-source AI coding agent and agent runtime: one binary, any model, MCP-native. Runs in terminal, CI, or as a daemon.
