You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/5-data-diffing/mcp-server.md
+26-9Lines changed: 26 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,14 +2,31 @@
2
2
title: MCP Server
3
3
---
4
4
5
-
Recce allows you to expose its tools to AI agents for integration. Here's how to use Claude Codeto integrate with Recce.
5
+
Recce exposes its tools to AI agents, enabling integration with tools like Claude Code. This allows you to interact with Recce analysis through natural language queries directly in your Claude Code sessions.
6
6
7
7
8
-
## Method 1: MCP Server
8
+
## Installation
9
9
10
-
To use Recce in Claude Code, add an MCP server to your project. Claude Code will launch the MCP server when the session starts.
10
+
1. Install Recce with the MCP extra dependency:
11
11
12
-
1. Add Recce to your dbt project
12
+
```shell
13
+
pip install 'recce[mcp]'
14
+
```
15
+
16
+
2. Verify the MCP server works by starting it in your dbt project:
17
+
18
+
```shell
19
+
cd my-dbt-project/
20
+
recce mcp-server
21
+
```
22
+
23
+
You should see the message: `Starting Recce MCP Server in stdio mode...` Stop the server with `Ctrl+C` once confirmed.
24
+
25
+
## Method 1: MCP Server (stdio)
26
+
27
+
Configure Recce as an MCP server with stdio transport. Claude Code will automatically launch the MCP server when you start a session.
28
+
29
+
1. Configure the MCP server for your dbt project:
13
30
14
31
```shell
15
32
claude mcp add --scope project recce -- recce mcp-server
@@ -29,28 +46,28 @@ To use Recce in Claude Code, add an MCP server to your project. Claude Code will
29
46
30
47
## Method 2: MCP Server (SSE)
31
48
32
-
Alternatively, you can launch a standalone MCP server. Claude Code will connect to it using HTTP-SSE.
49
+
Alternatively, launch a standalone MCP server that Claude Code connects to via HTTP-SSE. This requires running the server in a separate terminal.
33
50
34
-
1. Add Recce to your dbt project
51
+
1. Configure the MCP server foryour dbt project:
35
52
36
53
```shell
37
54
claude mcp add --transport sse --scope project recce http://localhost:8000/sse
38
55
```
39
56
40
-
2. Launch the standalone MCP server with HTTP-SSE
57
+
2. In a separate terminal, start the standalone MCP server:
0 commit comments