Installation & Configuration
Install and Configure Alephant MCP
This document explains how to import and configure Alephant MCP in host environments such as Cursor, Claude Desktop, and VS Code (MCP extension).
1. Quick Installation
This project is distributed via NPM and supports seamless integration using npx. You can also install it globally:
2. Environment Variables
Mode Detection: If ALEPHANT_PAT is non-empty, it is always Manager; otherwise, if ALEPHANT_VIRTUAL_KEY is set, it is VK.
3. Integration in Cursor
To enable the “Full-Stack Governance Cockpit” in Cursor:
- Open Cursor Settings → Features → MCP
- Click + Add New MCP Server
- Fill in the following information:
- Type:
command - Command:
npx - Args:
-yand@alephantai/mcp(in two separate fields)
- Type:
- In Environment variables, fill in the corresponding variables mentioned above (choose either the VK or Manager combination).
- Save and ensure the status indicator turns green.
4. mcp.json Configuration Snippets
For host environments using mcp.json, you can refer to the two most common configurations below:
Virtual Key (VK) — Read-Only
Manager — Full Management
Multi-Workspace Configuration: Duplicate an mcpServers entry for each PAT/workspace and ensure the names are unique.
5. Local Development and Scheduled Tasks
Local Development:
Run npx from the parent directory of the alephant-mcp repository, or change the command in the configuration to node and point args to ./bin/alephant-mcp.js.
Scheduled Tasks and Proactive Reporting:
- AI Scheduling: Simply tell the AI: “Schedule a task: Run Alephant audit every Monday at 9 AM.”
- Local Cron: Add to your crontab:
0 9 * * 1 npx --yes --package=@alephantai/mcp alephant-mcp --audit >> ./AUDIT.md