agent-install
Install agent skills and MCPs with one API.
$
npx agent-install@latest --help
Getting started
Install skills, MCP servers, and AGENTS.md guidance into Claude Code, Cursor, Codex, OpenCode, and 40+ other agents
One CLI and one Node API that write to each agent's native config (JSON/JSONC/YAML/TOML, skills directories, AGENTS.md variants)
Skills install from local paths, GitHub, GitLab, SSH URLs, or any git remote
GitHub
Pick your agent
One install command, every coding agent. Toggle the agent below to see how agent-install writes the MCP server into its native config.
Agent:
$
npx agent-install@latest mcp add https://mcp.context7.com/mcp -a claude-code
Library API
Three namespaces (skill, mcp, agentsMd) with verbs that mirror the CLI.
TypeScript
import { skill, mcp, agentsMd } from "agent-install";

await skill.add({ source: "owner/repo", agents: ["cursor"] });
mcp.add({ source: "https://mcp.context7.com/mcp", agents: ["cursor"], name: "context7" });
agentsMd.setSection({ heading: "Testing", body: "Run pnpm test" });
FAQ
What is agent-install?
A Node API and CLI for installing the three things every AI coding agent consumes: SKILL.md files, MCP servers, and AGENTS.md guidance. It writes to each agent's native config so you don't have to learn ten different formats.
Why not just use each agent's own CLI?
Every agent has its own format and install command. agent-install gives you a single API (skill.add, mcp.add, agentsMd.setSection) and a single CLI (agent-install skill add ...) that targets all of them. Build a tool once, ship it to every agent.
Where can I install skills from?
Local paths, GitHub repos (full URLs, owner/repo shorthand, with subpaths and branch refs), GitLab repos, SSH URLs (deploy keys for private repos), or any git remote. Direct SKILL.md URLs work too.
Which agents are supported?
Claude Code, Cursor, Codex, OpenCode, Gemini CLI, GitHub Copilot, Goose, Windsurf, Roo, Cline, Kilo, Claude Desktop, VS Code, Zed, Antigravity, MCPorter, Aider, and more. The supported set differs slightly by surface (skills vs MCP vs AGENTS.md).
Is the API stable?
Pre-1.0. The short verbs (skill.add, mcp.add, agentsMd.setSection) and the long-form aliases (installSkillsFromSource, installMcpServer, upsertAgentsMdSection) will both stick around. Internal helpers may change.