From d51617a40a722f5c9ecaa80a98f7c3e0239992a3 Mon Sep 17 00:00:00 2001 From: Justin Spahr-Summers Date: Thu, 21 Nov 2024 12:52:38 +0000 Subject: [PATCH] Add Windows installation steps --- quickstart.mdx | 171 ++++++++++++++++++++++++++++++++++--------------- 1 file changed, 120 insertions(+), 51 deletions(-) diff --git a/quickstart.mdx b/quickstart.mdx index 312b137..ea1c5ac 100644 --- a/quickstart.mdx +++ b/quickstart.mdx @@ -76,8 +76,8 @@ This gives you a secure way to let Claude analyze and interact with your local d ## Prerequisites -- macOS (Windows/Linux guides coming soon) -- [Claude Desktop](https://claude.ai/download) v0.7.0 or newer installed (Claude > About Claude to check) +- macOS or Windows +- The latest version of [Claude Desktop](https://claude.ai/download) installed - Node.js v18 or higher (`node --version` to check) - Git (`git --version` to check) - SQLite (`sqlite3 --version` to check) @@ -96,67 +96,136 @@ brew install node git sqlite3 ## Installation - - - Let's start by getting the pre-built MCP servers: + + + + + Let's start by getting the pre-built MCP servers: - ```bash - npm install -g @modelcontextprotocol/servers - ``` + ```bash + npm install -g @modelcontextprotocol/servers + ``` - This makes the MCP servers available as command-line tools that Claude Desktop can launch. - + This makes the MCP servers available as command-line tools that Claude Desktop can launch. + - - Let's create a simple SQLite database for testing: + + Let's create a simple SQLite database for testing: - ```bash - # Create a new SQLite database - sqlite3 ~/test.db < + ```bash + # Create a new SQLite database + sqlite3 ~/test.db < - - Open your Claude Desktop App configuration at `~/Library/Application Support/Claude/claude_desktop_config.json` in a text editor. + + Open your Claude Desktop App configuration at `~/Library/Application Support/Claude/claude_desktop_config.json` in a text editor. - For example, if you have [VS Code](https://code.visualstudio.com/) installed: + For example, if you have [VS Code](https://code.visualstudio.com/) installed: - ```bash - code ~/Library/Application\ Support/Claude/claude_desktop_config.json - ``` + ```bash + code ~/Library/Application\ Support/Claude/claude_desktop_config.json + ``` - Add this configuration (replace YOUR_USERNAME with your actual username): + Add this configuration (replace YOUR_USERNAME with your actual username): - ```json - { - "mcpServers": { - "sqlite": { - "command": "mcp-server-sqlite", - "args": ["/Users/YOUR_USERNAME/test.db"] + ```json + { + "mcpServers": { + "sqlite": { + "command": "mcp-server-sqlite", + "args": ["/Users/YOUR_USERNAME/test.db"] + } + } } - } - } - ``` + ``` - This tells Claude Desktop: - 1. There's an MCP server named "sqlite" - 2. Launch it using the `mcp-server-sqlite` command - 3. Connect it to your test database + This tells Claude Desktop: + 1. There's an MCP server named "sqlite" + 2. Launch it using the `mcp-server-sqlite` command + 3. Connect it to your test database - Save the file, and restart **Claude Desktop**. - - + Save the file, and restart **Claude Desktop**. + + + + + + + Let's start by getting the pre-built MCP servers: + + ```bash + npm install -g @modelcontextprotocol/servers + ``` + + This makes the MCP servers available as command-line tools that Claude Desktop can launch. + + + + Let's create a simple SQLite database for testing: + + ```powershell + # Create a new SQLite database + $sql = @' + CREATE TABLE products ( + id INTEGER PRIMARY KEY, + name TEXT, + price REAL + ); + + INSERT INTO products (name, price) VALUES + ('Widget', 19.99), + ('Gadget', 29.99), + ('Gizmo', 39.99); + '@ + + & sqlite3 test.db $sql + ``` + + + + Open your Claude Desktop App configuration at `%APPDATA%\Claude\claude_desktop_config.json` in a text editor. + + For example, if you have [VS Code](https://code.visualstudio.com/) installed: + + ```bash + $env:AppData\Claude\claude_desktop_config.json + ``` + + Add this configuration (replace YOUR_USERNAME with your actual username): + + ```json + { + "mcpServers": { + "sqlite": { + "command": "mcp-server-sqlite", + "args": ["/Users/YOUR_USERNAME/test.db"] + } + } + } + ``` + + This tells Claude Desktop: + 1. There's an MCP server named "sqlite" + 2. Launch it using the `mcp-server-sqlite` command + 3. Connect it to your test database + + Save the file, and restart **Claude Desktop**. + + + + ## Test it out