cursor-mcp
TypeScript icon, indicating that this package has built-in type declarations

1.0.10 • Public • Published

Cursor MCP (Model Context Protocol) Server

This is an implementation of the Model Context Protocol server for Cursor.ai integration, allowing Claude to interact with the Cursor code editor.

Features

  • Real-time code indexing and analysis
  • Bi-directional communication with Claude
  • Support for multiple concurrent sessions
  • Automatic reconnection handling
  • Comprehensive error handling and logging
  • TypeScript implementation with full type safety

Installation

npm install @modelcontextprotocol/cursor-mcp

Usage

import CursorMCP from '@modelcontextprotocol/cursor-mcp';

const cursorMcp = new CursorMCP('ws://localhost:3000');

// Start the MCP server
await cursorMcp.start();

// Stop the server when done
await cursorMcp.stop();

Configuration

The server can be configured through the cursor.config.ts file, which includes settings for:

  • Code analysis rules
  • Context sharing parameters
  • Agent crosstalk settings
  • Indexing configuration

Development

Setup

# Install dependencies
npm install

# Build the project
npm run build

# Run in development mode
npm run dev

Testing

# Run tests
npm test

# Run linter
npm run lint

# Format code
npm run format

License

MIT

Package Sidebar

Install

npm i cursor-mcp

Weekly Downloads

2

Version

1.0.10

License

MIT

Unpacked Size

43.2 MB

Total Files

2834

Last publish

Collaborators

  • bugalati