mcpsq

mcpsq

A simple MCP server to discover and manage MCP servers. Provides tools to find, add, list, and remove MCP server configurations for Cursor.

Category
Visit Server

README

MCP^2(MCPSQ)

CI/CD

MCP^2(MCPSQ) is a simple MCP server to discover and manage MCP servers. See our website mcpsq.xyz for more information.

Usage

npm start

Local Development

Prerequisites

Installation

  1. Clone the repository:
git clone https://github.com/xinbenlv/mcpsq.git
cd mcpsq
  1. Install dependencies:
npm install

Running the Server

Start the MCP server locally:

# Production mode
npm start

# Development mode with auto-reload
npm run dev

# Build TypeScript to JavaScript
npm run build

The server will start on http://localhost:3000 and provide:

  • SSE endpoint at GET /mcp
  • Message handling at POST /messages

Configuring Cursor MCP Integration

To use this MCP server with Cursor, add the following configuration to your Cursor MCP settings:

Option 1: Global Configuration

Create or edit ~/.cursor/mcp.json:

{
  "mcpServers": {
    "mcpsq": {
      "url": "http://localhost:3000/mcp"
    }
  }
}

Option 2: Project-specific Configuration

Create .cursor/mcp.json in your project root:

{
  "mcpServers": {
    "mcpsq": {
      "url": "http://localhost:3000/mcp"
    }
  }
}

Available MCP Tools

Once configured, the following tools will be available in Cursor:

  • find-mcp-server: Search for MCP servers relevant to your query
  • add-mcp-server-to-cursor: Add an MCP server to your Cursor configuration
  • list-current-mcp-servers: List all currently configured MCP servers
  • remove-mcp-server-from-cursor: Remove an MCP server from your configuration

Testing the Integration

  1. Start the MCPSQ server locally
  2. Configure Cursor with the MCP settings above
  3. Restart Cursor or reload the MCP configuration
  4. In Cursor chat, try asking: "Find MCP servers for database management"
  5. The MCPSQ tools should appear in the available tools list

Development Scripts

# Start the server in production mode
npm start

# Start the server in development mode with auto-reload
npm run dev

# Build TypeScript to JavaScript
npm run build

# Clean build directory
npm run clean

# Validate data files
npm run validate:data

# Type checking without emitting files
npm run typecheck

Development Workflow

  1. Development: Use npm run dev for development with automatic restart on file changes
  2. Type Checking: Run npm run typecheck to check for TypeScript errors without building
  3. Building: Use npm run build to compile TypeScript to JavaScript (automatically cleans first)
  4. Production: Use npm start to run the compiled TypeScript directly with tsx

Troubleshooting

  • Server not starting: Check if port 3000 is available
  • Cursor not connecting: Verify the MCP configuration file path and JSON syntax
  • Tools not appearing: Check Cursor's MCP logs in the output panel
  • TypeScript errors: Run npm run typecheck to see detailed error messages

Heroku Deployment

MCPSQ can be easily deployed to Heroku for cloud hosting:

Prerequisites

Deployment Steps

  1. Login to Heroku:
heroku login
  1. Create a new Heroku app:
heroku create your-mcpsq-app-name
  1. Deploy to Heroku:
git push heroku main
  1. Open your deployed app:
heroku open

Configuration

The app will automatically:

  • Use Heroku's PORT environment variable
  • Build the TypeScript code during deployment via heroku-postbuild script
  • Start the server using the compiled JavaScript

Your MCPSQ server will be available at:

  • MCP endpoint: https://your-app-name.herokuapp.com/mcp

Using with Cursor

Configure Cursor to use your Heroku-deployed MCPSQ server:

{
  "mcpServers": {
    "mcpsq": {
      "url": "https://your-app-name.herokuapp.com/mcp"
    }
  }
}

Data

The data is stored in the data directory.

Contributing

Contributions are welcome! Please feel free to submit a pull request that updates the data in the data directory.

ROADMAP

  • [x] handle env vars needed
  • [x] publish to npmjs.com
  • [x] add Heroku deployment support

License

This project is licensed under the MIT License - see the LICENSE file for details.

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured