Skip to main content
Glama

Cursor Admin MCP Server

by h3ro-dev
setup.shโ€ข1.39 kB
#!/bin/bash echo "๐Ÿš€ Cursor Admin MCP Server Setup" echo "================================" echo "" # Check if node is installed if ! command -v node &> /dev/null; then echo "โŒ Node.js is not installed. Please install Node.js 16+ first." exit 1 fi # Check node version NODE_VERSION=$(node -v | cut -d'v' -f2 | cut -d'.' -f1) if [ "$NODE_VERSION" -lt 16 ]; then echo "โŒ Node.js version 16+ is required. Current version: $(node -v)" exit 1 fi echo "โœ… Node.js $(node -v) detected" echo "" # Install dependencies echo "๐Ÿ“ฆ Installing dependencies..." npm install # Build the project echo "" echo "๐Ÿ”จ Building the project..." npm run build # Create .env file if it doesn't exist if [ ! -f .env ]; then echo "" echo "๐Ÿ“ Creating .env file..." cp .env.example .env echo "โš ๏ธ Please edit .env and add your CURSOR_API_KEY" fi # Test the build echo "" echo "๐Ÿงช Testing the build..." if npm test; then echo "โœ… All tests passed!" else echo "โš ๏ธ Some tests failed. This might be due to missing API key." fi echo "" echo "โœจ Setup complete!" echo "" echo "Next steps:" echo "1. Edit .env and add your CURSOR_API_KEY" echo "2. Run 'npm run dev examples/test-connection.ts' to test your connection" echo "3. Add the server to your Claude Desktop or Cursor configuration" echo "" echo "For more information, see the README.md file."

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/h3ro-dev/cursor-admin-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server