UNPKG

@briefhq/mcp-server

Version:

Brief MCP server and CLI – connect Cursor/Claude MCP to your Brief organization

106 lines (75 loc) 3.51 kB
# @briefhq/mcp-server Brief MCP server and CLI – connect Cursor/Claude MCP to your Brief organization. ## Quick Start (recommended) **One-liner setup:** Run this command to configure Brief MCP and install into your tools: ```bash npx -y @briefhq/mcp-server@latest init ``` This **guided setup** will: - Save your API key securely using your system keychain - Automatically detect and configure supported tools (Cursor, Claude Desktop, etc.) - Add Brief MCP to your development environment You can also run non‑interactively with flags like `--app`, `--scope`, `--yes`, and `--write`. ## Prerequisites Ensure you have Node.js installed (>= 18.18). For automated installs, use version managers: - `nvm install 20` or `brew install node` - Download from [nodejs.org](https://nodejs.org) if needed - Windows: use nvm-windows or the official Node.js installer To check if Node.js is installed: `node --version` ## Configuration 1. Generate an API key in the Brief web app (Organization → MCP Integration) 2. Configure the server with your API credentials: ```bash npx -y @briefhq/mcp-server@latest configure --api-url https://app.briefhq.ai --api-key <your_api_key> ``` Replace `<your_api_key>` with the API key you generated in step 1. ## Use with Cursor **Automatic Setup (recommended):** Visit your Brief organization’s MCP Integration page and click “Add Brief MCP server to Cursor.” **Manual setup:** In Cursor, go to Settings → Cursor Settings → Tools & Integrations, click “+ New MCP Server,” and add: ```json { "mcpServers": { "brief": { "command": "npx", "args": ["-y", "@briefhq/mcp-server@latest", "serve"] } } } ``` Restart Cursor, then invoke Brief tools from the MCP panel. ## Use with Claude Code Choose the appropriate scope based on your needs: **Local Scope (Project-specific):** ```bash claude mcp add brief --scope local -- npx -y @briefhq/mcp-server@latest serve ``` **Project Scope (Team-shared):** ```bash claude mcp add brief --scope project -- npx -y @briefhq/mcp-server@latest serve ``` **User Scope (Global for you):** ```bash claude mcp add brief --scope user -- npx -y @briefhq/mcp-server@latest serve ``` Verify installation: `claude mcp list` ## Use with Claude Desktop 1. Download the Claude Desktop Extension (.DXT file) from your Brief organization's MCP Integration page 2. Open Claude Desktop → Settings → Extensions 3. Drag and drop the .DXT file to install 4. Configure with your organization name and API key 5. Restart Claude Desktop ## Commands - `npx @briefhq/mcp-server@latest init` – One‑liner setup (credentials + install targets) - `npx @briefhq/mcp-server@latest configure` – Save API base and key securely - `npx @briefhq/mcp-server@latest update-guidelines` – Update .brief/brief-guidelines.md to the latest version - `npx @briefhq/mcp-server@latest test` – Verify connectivity to Brief - `npx @briefhq/mcp-server@latest serve` – Start the MCP server - `npx @briefhq/mcp-server@latest --help` – Show all available commands ## Notes - No global installation required – uses `npx` to always get the latest version - **Auto-updates**: `.brief/brief-guidelines.md` automatically updates to the latest version when the MCP server starts (silent by default, set `BRIEF_VERBOSE=1` to see update messages) - API keys are scoped to your organization; you can revoke/rotate any time - Never paste server-only secrets into MCP; only use Brief API keys - Requires Node.js >= 18.18