Inky MCP Server

Inky MCP Server

MCP server that connects Cursor IDE to Inky backend, enabling users to list and filter personalized coding rules stored in Pinecone.

Category
Visit Server

README

Inky MCP Server

npm version npm downloads

MCP (Model Context Protocol) server for Inky that provides access to your personalized coding rules stored in Pinecone. This server acts as a bridge between Cursor IDE and your Inky backend API.

šŸ“¦ Published on npmjs: https://www.npmjs.com/package/inky-mcp-server

Overview

The Inky MCP server allows you to access your personalized software rules directly from Cursor IDE. It connects to your hosted Inky API endpoint and retrieves rules from your Pinecone database.

Features

  • āœ… List all your coding rules
  • āœ… Filter rules by repository
  • āœ… Secure API key authentication
  • āœ… JSON-RPC 2.0 protocol compliance
  • āœ… Compatible with Cursor IDE

Installation

The package is available on npmjs: inky-mcp-server

Using npx (Recommended)

npx -y inky-mcp-server

Using npm

npm install -g inky-mcp-server

Using pnpm

pnpm add -g inky-mcp-server

Using yarn

yarn global add inky-mcp-server

Configuration

1. Get Your API Token

First, you need to generate an MCP access token from your Inky account. The token will be in the format inky_....

2. Configure Cursor IDE

Add the following configuration to your Cursor settings. The configuration file location depends on your OS:

macOS/Linux: ~/.cursor/mcp.json
Windows: %APPDATA%\Cursor\mcp.json

Option 1: HTTP Transport (Recommended - Direct API Access)

{
  "mcpServers": {
    "inky": {
      "url": "https://your-domain.com/api/mcp",
      "headers": {
        "Authorization": "Bearer inky_YOUR_TOKEN_HERE"
      }
    }
  }
}

Option 2: Stdio Transport (Using MCP Server Package)

{
  "mcpServers": {
    "inky": {
      "command": "npx",
      "args": ["-y", "inky-mcp-server"],
      "env": {
        "API_KEY": "inky_YOUR_TOKEN_HERE",
        "INKY_API_URL": "https://your-domain.com"
      }
    }
  }
}

Environment Variables

  • API_KEY (required): Your Inky MCP access token (starts with inky_)
  • INKY_API_URL (optional): Your Inky API base URL. Defaults to:
    • NEXT_PUBLIC_APP_URL environment variable
    • http://localhost:3000 if not set

Usage

Once configured, the MCP server will be available in Cursor IDE. You can use it to:

List All Rules

Query all your coding rules:

List all my coding rules

Filter by Repository

Get rules for a specific repository:

Show me rules for repository [repository_id]

API Reference

The MCP server communicates with the Inky backend API using JSON-RPC 2.0 protocol.

Tools

list_rules

Lists all user's rules, optionally filtered by repository.

Parameters:

  • repository_id (optional): Filter rules by repository ID

Example Request:

{
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "name": "list_rules",
    "arguments": {
      "repository_id": "repo_123"
    }
  },
  "id": 1
}

Example Response:

{
  "jsonrpc": "2.0",
  "result": {
    "content": [
      {
        "type": "text",
        "text": "[{\"id\":\"rule_123\",\"name\":\"TypeScript Best Practices\",\"content\":\"...\",\"version\":1,\"is_active\":true,\"repository_id\":\"repo_123\",\"created_at\":\"2024-01-01T00:00:00Z\"}]"
      }
    ]
  },
  "id": 1
}

Development

Building from Source

cd packages/mcp-server
pnpm install
pnpm build

Running in Development Mode

pnpm dev

Testing

You can test the MCP server using the Postman collection included in the main repository (postman-mcp-collection.json).

Architecture

ā”Œā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”
│  Cursor IDE │
ā””ā”€ā”€ā”€ā”€ā”€ā”€ā”¬ā”€ā”€ā”€ā”€ā”€ā”€ā”˜
       │ stdio
       │
ā”Œā”€ā”€ā”€ā”€ā”€ā”€ā–¼ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”
│  Inky MCP Server         │
│  (This Package)          │
ā””ā”€ā”€ā”€ā”€ā”€ā”€ā”¬ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”˜
       │ HTTP POST
       │ Bearer Token
       │
ā”Œā”€ā”€ā”€ā”€ā”€ā”€ā–¼ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”
│  Inky Backend API        │
│  /api/mcp                │
ā””ā”€ā”€ā”€ā”€ā”€ā”€ā”¬ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”˜
       │
ā”Œā”€ā”€ā”€ā”€ā”€ā”€ā–¼ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”
│  Pinecone Database       │
│  (User's Rules)          │
ā””ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”˜

Security

  • API tokens are passed via environment variables (never hardcoded)
  • All API requests use Bearer token authentication
  • Tokens are hashed and stored securely in the database
  • Each user can only access their own rules

Troubleshooting

Server Not Starting

Error: Error: API_KEY environment variable is required

Solution: Make sure you've set the API_KEY environment variable in your Cursor MCP configuration.

Connection Errors

Error: Backend API error

Solution:

  1. Verify your INKY_API_URL is correct
  2. Check that your API token is valid
  3. Ensure the backend API is accessible

No Rules Returned

Solution:

  1. Verify you have rules created in your Inky account
  2. Check that your API token belongs to the correct user
  3. Try listing rules without repository filter first

License

MIT

Support

For issues and questions, please refer to the main Inky repository.

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