MCP server
Import Guardian
Catch AI-hallucinated (slopsquatted) npm imports in generated code before npm install.
Runs locallyStatus and history
- Pricing
- Open source
- Runs
- Locally
- Version
- 0.3.0
- Listing updated
- 5 days ago
About Import Guardian
Import Guardian is an open-source MCP server. It runs locally on your machine and is started by your AI client.
Install
Run in a terminal
claude mcp add import-guardian -- npx -y import-guardian-mcpAdd to claude_desktop_config.json
{
"mcpServers": {
"import-guardian": {
"command": "npx",
"args": [
"-y",
"import-guardian-mcp"
]
}
}
}Install in CursorOpens Cursor, which asks you to confirm. Or add it by hand:
Add to ~/.cursor/mcp.json
{
"mcpServers": {
"import-guardian": {
"command": "npx",
"args": [
"-y",
"import-guardian-mcp"
]
}
}
}Install in VS CodeOpens VS Code, which asks you to confirm. Or add it by hand:
Add to .vscode/mcp.json
{
"servers": {
"import-guardian": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"import-guardian-mcp"
]
}
}
}Add to ~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"import-guardian": {
"command": "npx",
"args": [
"-y",
"import-guardian-mcp"
]
}
}
}Add to your client's MCP settings (most use this shape)
{
"mcpServers": {
"import-guardian": {
"command": "npx",
"args": [
"-y",
"import-guardian-mcp"
]
}
}
}Using several servers? Build one config file with the MCP config generator.
Pricing
Open source
Import Guardian FAQ
Is Import Guardian free?
Yes. Import Guardian is open source, so you can use and self-host it for free.
How do I add Import Guardian to Claude Code?
Run this command in your terminal: claude mcp add import-guardian -- npx -y import-guardian-mcp
Where this comes from
- Description: from the official MCP Registry entry.
- Install steps: from the official MCP Registry entry.