# Prexist MCP Server

MCP server that exposes Prexist product research and agent skill discovery tools. Search across 9 platforms to find existing products similar to your idea.

Works with Claude Code, Cursor, Windsurf, and any MCP-compatible client.

## Quick Setup

### Claude Code

```bash
claude mcp add prexist -- npx -y prexist
```

### Cursor

Add to `.cursor/mcp.json`:

```json
{
  "mcpServers": {
    "prexist": {
      "command": "npx",
      "args": ["-y", "prexist"]
    }
  }
}
```

### Windsurf / Other MCP Clients

Use stdio transport with the command `npx -y prexist`.

## Tools

| Tool | Description |
|------|-------------|
| `prexist_search` | Search for existing products similar to a product idea across 9 platforms |
| `prexist_search_skills` | Search agent skill directories (ClawHub, Skills Directory) for existing skills |
| `prexist_platforms` | List all available platforms and skill directories |

## Environment Variables

| Variable | Required | Description |
|----------|----------|-------------|
| `PREXIST_API_URL` | No | Override the Prexist API base URL (defaults to production) |
| `SKILLS_DIRECTORY_API_KEY` | No | API key for skillsdirectory.com. If not set, that source is skipped. |

## Usage Examples

**Product research:** "Search for products similar to a collaborative task management tool for remote engineering teams that integrates with GitHub and provides automated standup summaries"

**Skill discovery:** "Search for existing agent skills related to code review automation"

**List sources:** "What platforms can Prexist search?"

## Development

### Build from source

```bash
cd mcp-server
npm install
npm run build
```

### Local config (path-based)

If developing locally, you can point directly to the built output instead of using npx.

**Claude Code** -- add to `.claude/settings.local.json`:

```json
{
  "mcpServers": {
    "prexist": {
      "type": "stdio",
      "command": "node",
      "args": ["/absolute/path/to/prexist/mcp-server/dist/index.js"]
    }
  }
}
```

**Cursor** -- add to `.cursor/mcp.json`:

```json
{
  "mcpServers": {
    "prexist": {
      "command": "node",
      "args": ["/absolute/path/to/prexist/mcp-server/dist/index.js"]
    }
  }
}
```
