textrawl
byJeff Green
Getting Started

Quick Start

Get textrawl running in 5 minutes

Get textrawl running and connected to Claude Desktop in 5 minutes.

Prerequisites

Step 1: Clone and Install

git clone https://github.com/jeffgreendesign/textrawl.git
cd textrawl
pnpm install

Step 2: Run Setup

The setup script creates your .env file with secure defaults:

pnpm run setup

You'll be prompted for:

  • Supabase URL
  • Supabase Service Key
  • OpenAI API Key

Step 3: Initialize Database

In the Supabase SQL Editor, run:

-- Paste contents of scripts/setup-db.sql

Then run the security script:

-- Paste contents of scripts/security-rls.sql

Step 4: Start the Server

pnpm run dev

Server runs at http://localhost:3000

Step 5: Configure Claude Desktop

Edit ~/Library/Application Support/Claude/claude_desktop_config.json:

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

Restart Claude Desktop to connect.

Verify It Works

Using MCP Inspector

pnpm run inspector

Opens a web UI at http://localhost:5173 to test MCP tools.

In Claude Desktop

Ask Claude:

"Use the search_knowledge tool to find documents about getting started"

If no documents exist yet, add a test note:

"Use add_note to create a note titled 'Test Note' with content 'This is a test of textrawl'"

Then search for it:

"Search for 'test' in my knowledge base"

Next Steps

Troubleshooting

"Database not configured"

Verify your .env has valid Supabase credentials:

SUPABASE_URL=https://your-project.supabase.co
SUPABASE_SERVICE_KEY=your-service-key

"OpenAI not configured"

Ensure OPENAI_API_KEY is set in .env

Claude can't connect

  1. Verify server is running: curl http://localhost:3000/health
  2. Check Claude Desktop config path is correct
  3. Restart Claude Desktop after config changes

On this page