@moorchehai/mcp 1.3.1 → 1.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +296 -296
- package/package.json +69 -69
- package/src/server/config/api.js +27 -20
- package/src/server/tools/data-tools.js +27 -10
- package/src/server/tools/namespace-tools.js +2 -2
- package/src/server/tools/search-tools.js +275 -273
- package/src/server/utils/prompts.js +4 -4
- package/src/server/utils/resources.js +5 -5
package/README.md
CHANGED
|
@@ -1,296 +1,296 @@
|
|
|
1
|
-
<div align="left">
|
|
2
|
-
<picture>
|
|
3
|
-
<source media="(prefers-color-scheme: dark)" srcset="assets/moorcheh-logo-dark.svg">
|
|
4
|
-
<source media="(prefers-color-scheme: light)" srcset="assets/moorcheh-logo-light.svg">
|
|
5
|
-
<img width="250px" alt="Moorcheh Logo" src="assets/moorcheh-logo-light.svg">
|
|
6
|
-
</picture>
|
|
7
|
-
<br />
|
|
8
|
-
<h1>Moorcheh MCP Server</h1>
|
|
9
|
-
<p>A Model Context Protocol (MCP) server that provides seamless integration with Moorcheh's Embedding, Vector Store, Search, and Gen AI Answer services. This server enables you to interact with Moorcheh's comprehensive AI capabilities including document embedding, vector storage, semantic search, and AI-powered answer generation through the Model Context Protocol.</p>
|
|
10
|
-
</div>
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
## Quick Start Guide
|
|
15
|
-
|
|
16
|
-
There are two ways to use the Moorcheh MCP server:
|
|
17
|
-
|
|
18
|
-
### Option 1: NPX (Recommended - No Installation Required)
|
|
19
|
-
|
|
20
|
-
The easiest way to get started:
|
|
21
|
-
|
|
22
|
-
```bash
|
|
23
|
-
# Set your API key and run directly
|
|
24
|
-
MOORCHEH_API_KEY=your_api_key_here npx -y @moorchehai/mcp
|
|
25
|
-
```
|
|
26
|
-
|
|
27
|
-
### Option 2: Manual Installation
|
|
28
|
-
|
|
29
|
-
If you prefer to clone and run locally:
|
|
30
|
-
|
|
31
|
-
1. **Clone the repository**
|
|
32
|
-
```bash
|
|
33
|
-
git clone https://github.com/moorcheh-ai/moorcheh-mcp.git
|
|
34
|
-
cd moorcheh-mcp
|
|
35
|
-
```
|
|
36
|
-
|
|
37
|
-
2. **Install dependencies**
|
|
38
|
-
```bash
|
|
39
|
-
npm install
|
|
40
|
-
```
|
|
41
|
-
|
|
42
|
-
### Step 2: Configure Your API Key
|
|
43
|
-
|
|
44
|
-
1. **Get your Moorcheh API key**
|
|
45
|
-
- Visit [Moorcheh Dashboard](https://app.moorcheh.ai)
|
|
46
|
-
- Sign in to your account
|
|
47
|
-
- Go to your account settings
|
|
48
|
-
- Generate or copy your API key
|
|
49
|
-
|
|
50
|
-
2. **Set up your environment**
|
|
51
|
-
```bash
|
|
52
|
-
# Copy the example environment file
|
|
53
|
-
cp env.example .env
|
|
54
|
-
```
|
|
55
|
-
|
|
56
|
-
3. **Edit the .env file**
|
|
57
|
-
```bash
|
|
58
|
-
# Open .env in your preferred editor
|
|
59
|
-
# Replace 'your_moorcheh_api_key_here' with your actual API key
|
|
60
|
-
MOORCHEH_API_KEY=your_actual_api_key_here
|
|
61
|
-
```
|
|
62
|
-
|
|
63
|
-
### Step 3: Start the Server
|
|
64
|
-
|
|
65
|
-
```bash
|
|
66
|
-
npm start
|
|
67
|
-
```
|
|
68
|
-
|
|
69
|
-
That's it! Your Moorcheh MCP server is now running and ready to use.
|
|
70
|
-
|
|
71
|
-
## Setting Up with Claude Desktop
|
|
72
|
-
|
|
73
|
-
To use the Moorcheh MCP server with Claude Desktop:
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
https://github.com/user-attachments/assets/fccbba8e-7393-4b74-8a73-769b55b3f3a3
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
### Step 1: Install Claude Desktop
|
|
81
|
-
1. Download Claude Desktop from [https://claude.ai/download](https://claude.ai/download)
|
|
82
|
-
2. Install and launch Claude Desktop
|
|
83
|
-
|
|
84
|
-
### Step 2: Configure MCP Server
|
|
85
|
-
|
|
86
|
-
**Option A: Using NPX (Recommended)**
|
|
87
|
-
1. In Claude Desktop, go to **Settings** → **Developer**
|
|
88
|
-
2. Click **Edit Config**
|
|
89
|
-
3. Configure the server with these settings:
|
|
90
|
-
```json
|
|
91
|
-
{
|
|
92
|
-
"mcpServers": {
|
|
93
|
-
"moorcheh": {
|
|
94
|
-
"command": "npx",
|
|
95
|
-
"args": ["-y", "@moorchehai/mcp"],
|
|
96
|
-
"env": {
|
|
97
|
-
"MOORCHEH_API_KEY": "your_actual_api_key_here"
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
```
|
|
103
|
-
|
|
104
|
-
**Option B: Local Installation**
|
|
105
|
-
1. In Claude Desktop, go to **Settings** → **Developer**
|
|
106
|
-
2. Click **Edit Config**
|
|
107
|
-
3. Configure the server with these settings:
|
|
108
|
-
```json
|
|
109
|
-
{
|
|
110
|
-
"mcpServers":{
|
|
111
|
-
"moorcheh": {
|
|
112
|
-
"command": "node",
|
|
113
|
-
"args": [
|
|
114
|
-
"path\\to\\moorcheh-mcp\\src\\server\\index.js"
|
|
115
|
-
],
|
|
116
|
-
"env": {
|
|
117
|
-
"NODE_ENV": "development"
|
|
118
|
-
}
|
|
119
|
-
}
|
|
120
|
-
}
|
|
121
|
-
}
|
|
122
|
-
```
|
|
123
|
-
|
|
124
|
-
3. **Important**:
|
|
125
|
-
- For **Option A**: Replace `your_actual_api_key_here` with your actual Moorcheh API key
|
|
126
|
-
- For **Option B**: Replace `path\\to\\moorcheh-mcp\\src\\server\\index.js` with the actual path to your `index.js` file and create .env in **moorcheh-mcp** with your API key
|
|
127
|
-
4. Save the configuration file and restart Claude Desktop completely
|
|
128
|
-
|
|
129
|
-
### Step 3: Test the Connection
|
|
130
|
-
1. Start a new conversation in Claude Desktop
|
|
131
|
-
2. Ask Claude to list the available tools: "Can you list down my namespaces?"
|
|
132
|
-
3. You should see tools like `list-namespaces`, `search`, `answer`, etc.
|
|
133
|
-
|
|
134
|
-
## Setting Up with Cursor
|
|
135
|
-
|
|
136
|
-
To use the Moorcheh MCP server with Cursor IDE:
|
|
137
|
-
|
|
138
|
-
### Step 1: Install Cursor
|
|
139
|
-
1. Download Cursor from [https://cursor.com](https://cursor.com)
|
|
140
|
-
2. Install and launch Cursor
|
|
141
|
-
|
|
142
|
-
### Step 2: Configure MCP Server
|
|
143
|
-
|
|
144
|
-
**Option A: Using NPX (Recommended)**
|
|
145
|
-
1. In Cursor, go to **Settings** → **Tools & integration**
|
|
146
|
-
2. Click **Add MCP Server**
|
|
147
|
-
3. Configure the server with these settings:
|
|
148
|
-
```json
|
|
149
|
-
{
|
|
150
|
-
"mcpServers": {
|
|
151
|
-
"moorcheh": {
|
|
152
|
-
"command": "npx",
|
|
153
|
-
"args": ["-y", "@moorchehai/mcp"],
|
|
154
|
-
"env": {
|
|
155
|
-
"MOORCHEH_API_KEY": "your_actual_api_key_here"
|
|
156
|
-
}
|
|
157
|
-
}
|
|
158
|
-
}
|
|
159
|
-
}
|
|
160
|
-
```
|
|
161
|
-
|
|
162
|
-
**Option B: Local Installation**
|
|
163
|
-
1. In Cursor, go to **Settings** → **Tools & integration**
|
|
164
|
-
2. Click **Add MCP Server**
|
|
165
|
-
3. Configure the server with these settings:
|
|
166
|
-
```json
|
|
167
|
-
{
|
|
168
|
-
"mcpServers":{
|
|
169
|
-
"moorcheh": {
|
|
170
|
-
"command": "node",
|
|
171
|
-
"args": [
|
|
172
|
-
"path\\to\\moorcheh-mcp\\src\\server\\index.js"
|
|
173
|
-
],
|
|
174
|
-
"env": {
|
|
175
|
-
"NODE_ENV": "development"
|
|
176
|
-
}
|
|
177
|
-
}
|
|
178
|
-
}
|
|
179
|
-
}
|
|
180
|
-
```
|
|
181
|
-
|
|
182
|
-
### Step 3: Set Your API Key
|
|
183
|
-
- **For Option A**: Replace `your_actual_api_key_here` with your actual Moorcheh API key in the configuration
|
|
184
|
-
- **For Option B**: Create .env in **moorcheh-mcp** directory and add your API key with `MOORCHEH_API_KEY=your_key_here`
|
|
185
|
-
|
|
186
|
-
### Step 4: Test the Connection
|
|
187
|
-
1. Open a new chat in Cursor (Cmd/Ctrl + L)
|
|
188
|
-
2. Ask the AI to list available Moorcheh tools: "What Moorcheh tools can I use?"
|
|
189
|
-
3. You should see tools like `list-namespaces`, `search`, `answer`, etc.
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
## What This Server Does
|
|
193
|
-
|
|
194
|
-
The Moorcheh MCP server provides tools for:
|
|
195
|
-
|
|
196
|
-
- **Namespace Management**: Create, list, and delete namespaces for organizing your data
|
|
197
|
-
- **Document Operations**: Upload and manage text documents and vector embeddings
|
|
198
|
-
- **Advanced Search**: Perform semantic search across your data
|
|
199
|
-
- **AI-Powered Answers**: Get intelligent responses based on your stored data
|
|
200
|
-
|
|
201
|
-
## Available Tools
|
|
202
|
-
|
|
203
|
-
### Namespace Tools
|
|
204
|
-
- **`list-namespaces`**: View all your available namespaces
|
|
205
|
-
- **`create-namespace`**: Create a new namespace for storing data
|
|
206
|
-
- **`delete-namespace`**: Remove a namespace and all its contents
|
|
207
|
-
|
|
208
|
-
### Data Tools
|
|
209
|
-
- **`upload-text`**: Upload text documents to a namespace
|
|
210
|
-
- **`upload-vectors`**: Upload vector embeddings to a namespace
|
|
211
|
-
- **`upload-file`**: Upload files directly to a text-type namespace (supports .pdf, .docx, .xlsx, .json, .txt, .csv, .md, max 10MB)
|
|
212
|
-
- **`get-data`**: Retrieve text documents by ID from text namespaces
|
|
213
|
-
- **`delete-data`**: Remove specific data items from a namespace
|
|
214
|
-
|
|
215
|
-
### Search & AI Tools
|
|
216
|
-
- **`search`**: Search across namespaces with vector similarity
|
|
217
|
-
- **`answer`**: Get AI-generated answers based on top of your search
|
|
218
|
-
|
|
219
|
-
## Supported Bedrock Models
|
|
220
|
-
|
|
221
|
-
| Model ID | Name | Provider | Description |
|
|
222
|
-
|----------|------|----------|-------------|
|
|
223
|
-
| `anthropic.claude-sonnet-4-20250514-v1:0` | Claude Sonnet 4 | Anthropic | Hybrid reasoning, extended thinking, efficient code generation |
|
|
224
|
-
| `anthropic.claude-sonnet-4-5-20250929-v1:0` | Claude Sonnet 4.5 | Anthropic | Latest Claude model with enhanced capabilities and agentic search |
|
|
225
|
-
| `meta.llama4-maverick-17b-instruct-v1:0` | Llama 4 Maverick 17B | Meta | 1M token context, fine tuning, text summarization, function calling |
|
|
226
|
-
| `meta.llama3-3-70b-instruct-v1:0` | Llama 3.3 70B | Meta | Advanced reasoning and decision making capabilities |
|
|
227
|
-
| `amazon.nova-pro-v1:0` | Amazon Nova Pro | Amazon | 300K context, chat optimized, complex reasoning, math |
|
|
228
|
-
| `deepseek.r1-v1:0` | DeepSeek R1 | DeepSeek | Advanced reasoning and code generation |
|
|
229
|
-
| `openai.gpt-oss-120b-1:0` | OpenAI GPT OSS 120B | OpenAI | Hybrid reasoning, extended thinking, efficient research |
|
|
230
|
-
| `qwen.qwen3-32b-v1:0` | Qwen 3 32B | Qwen | Text generation and code generation |
|
|
231
|
-
|
|
232
|
-
## Prerequisites
|
|
233
|
-
|
|
234
|
-
- **Node.js**: Version 18.0.0 or higher
|
|
235
|
-
- **Moorcheh Account**: Active account with API access
|
|
236
|
-
- **Git**: For cloning the repository
|
|
237
|
-
|
|
238
|
-
## Development
|
|
239
|
-
|
|
240
|
-
### Development Mode
|
|
241
|
-
For development with auto-reload:
|
|
242
|
-
```bash
|
|
243
|
-
npm run dev
|
|
244
|
-
```
|
|
245
|
-
|
|
246
|
-
### Available Scripts
|
|
247
|
-
|
|
248
|
-
| Script | Description |
|
|
249
|
-
|--------|-------------|
|
|
250
|
-
| `npm start` | Start the MCP server |
|
|
251
|
-
| `npm run dev` | Start in development mode with auto-reload |
|
|
252
|
-
| `npm test` | Run tests (when available) |
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
## Environment Variables
|
|
256
|
-
|
|
257
|
-
| Variable | Description | Required | Default |
|
|
258
|
-
|----------|-------------|----------|---------|
|
|
259
|
-
| `MOORCHEH_API_KEY` | Your Moorcheh API key | Yes | None |
|
|
260
|
-
|
|
261
|
-
## Troubleshooting
|
|
262
|
-
|
|
263
|
-
### Common Issues
|
|
264
|
-
|
|
265
|
-
1. **"Missing required API_KEY environment variable"**
|
|
266
|
-
- Make sure you've created a `.env` file
|
|
267
|
-
- Verify your API key is correctly set in the `.env` file
|
|
268
|
-
- Check that the API key is valid in your Moorcheh dashboard
|
|
269
|
-
|
|
270
|
-
2. **"Forbidden: Check your API key"**
|
|
271
|
-
- Your API key may be invalid or expired
|
|
272
|
-
- Generate a new API key from the Moorcheh dashboard
|
|
273
|
-
- Update your `.env` file with the new key
|
|
274
|
-
|
|
275
|
-
3. **"Network Error"**
|
|
276
|
-
- Check your internet connection
|
|
277
|
-
- Verify the API endpoints are accessible
|
|
278
|
-
- Try again in a few minutes
|
|
279
|
-
|
|
280
|
-
### Getting Help
|
|
281
|
-
|
|
282
|
-
- **GitHub Issues**: [https://github.com/moorcheh-ai/moorcheh-mcp/issues](https://github.com/moorcheh-ai/moorcheh-mcp/issues)
|
|
283
|
-
- **Moorcheh Documentation**: [https://console.moorcheh.ai/docs/mcp](https://console.moorcheh.ai/docs/mcp)
|
|
284
|
-
- **Moorcheh Dashboard**: [https://console.moorcheh.ai](https://console.moorcheh.ai)
|
|
285
|
-
|
|
286
|
-
## License
|
|
287
|
-
|
|
288
|
-
This project is licensed under the Apache License 2.0 - see the [LICENSE](LICENSE) file for details.
|
|
289
|
-
|
|
290
|
-
## Contributing
|
|
291
|
-
|
|
292
|
-
We welcome contributions! Please feel free to submit a Pull Request.
|
|
293
|
-
|
|
294
|
-
## Changelog
|
|
295
|
-
|
|
296
|
-
For a detailed list of changes, see [CHANGELOG.md](CHANGELOG.md).
|
|
1
|
+
<div align="left">
|
|
2
|
+
<picture>
|
|
3
|
+
<source media="(prefers-color-scheme: dark)" srcset="assets/moorcheh-logo-dark.svg">
|
|
4
|
+
<source media="(prefers-color-scheme: light)" srcset="assets/moorcheh-logo-light.svg">
|
|
5
|
+
<img width="250px" alt="Moorcheh Logo" src="assets/moorcheh-logo-light.svg">
|
|
6
|
+
</picture>
|
|
7
|
+
<br />
|
|
8
|
+
<h1>Moorcheh MCP Server</h1>
|
|
9
|
+
<p>A Model Context Protocol (MCP) server that provides seamless integration with Moorcheh's Embedding, Vector Store, Search, and Gen AI Answer services. This server enables you to interact with Moorcheh's comprehensive AI capabilities including document embedding, vector storage, semantic search, and AI-powered answer generation through the Model Context Protocol.</p>
|
|
10
|
+
</div>
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
## Quick Start Guide
|
|
15
|
+
|
|
16
|
+
There are two ways to use the Moorcheh MCP server:
|
|
17
|
+
|
|
18
|
+
### Option 1: NPX (Recommended - No Installation Required)
|
|
19
|
+
|
|
20
|
+
The easiest way to get started:
|
|
21
|
+
|
|
22
|
+
```bash
|
|
23
|
+
# Set your API key and run directly
|
|
24
|
+
MOORCHEH_API_KEY=your_api_key_here npx -y @moorchehai/mcp
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
### Option 2: Manual Installation
|
|
28
|
+
|
|
29
|
+
If you prefer to clone and run locally:
|
|
30
|
+
|
|
31
|
+
1. **Clone the repository**
|
|
32
|
+
```bash
|
|
33
|
+
git clone https://github.com/moorcheh-ai/moorcheh-mcp.git
|
|
34
|
+
cd moorcheh-mcp
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
2. **Install dependencies**
|
|
38
|
+
```bash
|
|
39
|
+
npm install
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
### Step 2: Configure Your API Key
|
|
43
|
+
|
|
44
|
+
1. **Get your Moorcheh API key**
|
|
45
|
+
- Visit [Moorcheh Dashboard](https://app.moorcheh.ai)
|
|
46
|
+
- Sign in to your account
|
|
47
|
+
- Go to your account settings
|
|
48
|
+
- Generate or copy your API key
|
|
49
|
+
|
|
50
|
+
2. **Set up your environment**
|
|
51
|
+
```bash
|
|
52
|
+
# Copy the example environment file
|
|
53
|
+
cp env.example .env
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
3. **Edit the .env file**
|
|
57
|
+
```bash
|
|
58
|
+
# Open .env in your preferred editor
|
|
59
|
+
# Replace 'your_moorcheh_api_key_here' with your actual API key
|
|
60
|
+
MOORCHEH_API_KEY=your_actual_api_key_here
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
### Step 3: Start the Server
|
|
64
|
+
|
|
65
|
+
```bash
|
|
66
|
+
npm start
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
That's it! Your Moorcheh MCP server is now running and ready to use.
|
|
70
|
+
|
|
71
|
+
## Setting Up with Claude Desktop
|
|
72
|
+
|
|
73
|
+
To use the Moorcheh MCP server with Claude Desktop:
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
https://github.com/user-attachments/assets/fccbba8e-7393-4b74-8a73-769b55b3f3a3
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
### Step 1: Install Claude Desktop
|
|
81
|
+
1. Download Claude Desktop from [https://claude.ai/download](https://claude.ai/download)
|
|
82
|
+
2. Install and launch Claude Desktop
|
|
83
|
+
|
|
84
|
+
### Step 2: Configure MCP Server
|
|
85
|
+
|
|
86
|
+
**Option A: Using NPX (Recommended)**
|
|
87
|
+
1. In Claude Desktop, go to **Settings** → **Developer**
|
|
88
|
+
2. Click **Edit Config**
|
|
89
|
+
3. Configure the server with these settings:
|
|
90
|
+
```json
|
|
91
|
+
{
|
|
92
|
+
"mcpServers": {
|
|
93
|
+
"moorcheh": {
|
|
94
|
+
"command": "npx",
|
|
95
|
+
"args": ["-y", "@moorchehai/mcp"],
|
|
96
|
+
"env": {
|
|
97
|
+
"MOORCHEH_API_KEY": "your_actual_api_key_here"
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
```
|
|
103
|
+
|
|
104
|
+
**Option B: Local Installation**
|
|
105
|
+
1. In Claude Desktop, go to **Settings** → **Developer**
|
|
106
|
+
2. Click **Edit Config**
|
|
107
|
+
3. Configure the server with these settings:
|
|
108
|
+
```json
|
|
109
|
+
{
|
|
110
|
+
"mcpServers":{
|
|
111
|
+
"moorcheh": {
|
|
112
|
+
"command": "node",
|
|
113
|
+
"args": [
|
|
114
|
+
"path\\to\\moorcheh-mcp\\src\\server\\index.js"
|
|
115
|
+
],
|
|
116
|
+
"env": {
|
|
117
|
+
"NODE_ENV": "development"
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
```
|
|
123
|
+
|
|
124
|
+
3. **Important**:
|
|
125
|
+
- For **Option A**: Replace `your_actual_api_key_here` with your actual Moorcheh API key
|
|
126
|
+
- For **Option B**: Replace `path\\to\\moorcheh-mcp\\src\\server\\index.js` with the actual path to your `index.js` file and create .env in **moorcheh-mcp** with your API key
|
|
127
|
+
4. Save the configuration file and restart Claude Desktop completely
|
|
128
|
+
|
|
129
|
+
### Step 3: Test the Connection
|
|
130
|
+
1. Start a new conversation in Claude Desktop
|
|
131
|
+
2. Ask Claude to list the available tools: "Can you list down my namespaces?"
|
|
132
|
+
3. You should see tools like `list-namespaces`, `search`, `answer`, etc.
|
|
133
|
+
|
|
134
|
+
## Setting Up with Cursor
|
|
135
|
+
|
|
136
|
+
To use the Moorcheh MCP server with Cursor IDE:
|
|
137
|
+
|
|
138
|
+
### Step 1: Install Cursor
|
|
139
|
+
1. Download Cursor from [https://cursor.com](https://cursor.com)
|
|
140
|
+
2. Install and launch Cursor
|
|
141
|
+
|
|
142
|
+
### Step 2: Configure MCP Server
|
|
143
|
+
|
|
144
|
+
**Option A: Using NPX (Recommended)**
|
|
145
|
+
1. In Cursor, go to **Settings** → **Tools & integration**
|
|
146
|
+
2. Click **Add MCP Server**
|
|
147
|
+
3. Configure the server with these settings:
|
|
148
|
+
```json
|
|
149
|
+
{
|
|
150
|
+
"mcpServers": {
|
|
151
|
+
"moorcheh": {
|
|
152
|
+
"command": "npx",
|
|
153
|
+
"args": ["-y", "@moorchehai/mcp"],
|
|
154
|
+
"env": {
|
|
155
|
+
"MOORCHEH_API_KEY": "your_actual_api_key_here"
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
```
|
|
161
|
+
|
|
162
|
+
**Option B: Local Installation**
|
|
163
|
+
1. In Cursor, go to **Settings** → **Tools & integration**
|
|
164
|
+
2. Click **Add MCP Server**
|
|
165
|
+
3. Configure the server with these settings:
|
|
166
|
+
```json
|
|
167
|
+
{
|
|
168
|
+
"mcpServers":{
|
|
169
|
+
"moorcheh": {
|
|
170
|
+
"command": "node",
|
|
171
|
+
"args": [
|
|
172
|
+
"path\\to\\moorcheh-mcp\\src\\server\\index.js"
|
|
173
|
+
],
|
|
174
|
+
"env": {
|
|
175
|
+
"NODE_ENV": "development"
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
```
|
|
181
|
+
|
|
182
|
+
### Step 3: Set Your API Key
|
|
183
|
+
- **For Option A**: Replace `your_actual_api_key_here` with your actual Moorcheh API key in the configuration
|
|
184
|
+
- **For Option B**: Create .env in **moorcheh-mcp** directory and add your API key with `MOORCHEH_API_KEY=your_key_here`
|
|
185
|
+
|
|
186
|
+
### Step 4: Test the Connection
|
|
187
|
+
1. Open a new chat in Cursor (Cmd/Ctrl + L)
|
|
188
|
+
2. Ask the AI to list available Moorcheh tools: "What Moorcheh tools can I use?"
|
|
189
|
+
3. You should see tools like `list-namespaces`, `search`, `answer`, etc.
|
|
190
|
+
|
|
191
|
+
|
|
192
|
+
## What This Server Does
|
|
193
|
+
|
|
194
|
+
The Moorcheh MCP server provides tools for:
|
|
195
|
+
|
|
196
|
+
- **Namespace Management**: Create, list, and delete namespaces for organizing your data
|
|
197
|
+
- **Document Operations**: Upload and manage text documents and vector embeddings
|
|
198
|
+
- **Advanced Search**: Perform semantic search across your data
|
|
199
|
+
- **AI-Powered Answers**: Get intelligent responses based on your stored data
|
|
200
|
+
|
|
201
|
+
## Available Tools
|
|
202
|
+
|
|
203
|
+
### Namespace Tools
|
|
204
|
+
- **`list-namespaces`**: View all your available namespaces
|
|
205
|
+
- **`create-namespace`**: Create a new namespace for storing data
|
|
206
|
+
- **`delete-namespace`**: Remove a namespace and all its contents
|
|
207
|
+
|
|
208
|
+
### Data Tools
|
|
209
|
+
- **`upload-text`**: Upload text documents to a namespace
|
|
210
|
+
- **`upload-vectors`**: Upload vector embeddings to a namespace
|
|
211
|
+
- **`upload-file`**: Upload files directly to a text-type namespace (supports .pdf, .docx, .xlsx, .json, .txt, .csv, .md, max 10MB)
|
|
212
|
+
- **`get-data`**: Retrieve text documents by ID from text namespaces
|
|
213
|
+
- **`delete-data`**: Remove specific data items from a namespace
|
|
214
|
+
|
|
215
|
+
### Search & AI Tools
|
|
216
|
+
- **`search`**: Search across namespaces with vector similarity
|
|
217
|
+
- **`answer`**: Get AI-generated answers based on top of your search
|
|
218
|
+
|
|
219
|
+
## Supported Bedrock Models
|
|
220
|
+
|
|
221
|
+
| Model ID | Name | Provider | Description |
|
|
222
|
+
|----------|------|----------|-------------|
|
|
223
|
+
| `anthropic.claude-sonnet-4-20250514-v1:0` | Claude Sonnet 4 | Anthropic | Hybrid reasoning, extended thinking, efficient code generation |
|
|
224
|
+
| `anthropic.claude-sonnet-4-5-20250929-v1:0` | Claude Sonnet 4.5 | Anthropic | Latest Claude model with enhanced capabilities and agentic search |
|
|
225
|
+
| `meta.llama4-maverick-17b-instruct-v1:0` | Llama 4 Maverick 17B | Meta | 1M token context, fine tuning, text summarization, function calling |
|
|
226
|
+
| `meta.llama3-3-70b-instruct-v1:0` | Llama 3.3 70B | Meta | Advanced reasoning and decision making capabilities |
|
|
227
|
+
| `amazon.nova-pro-v1:0` | Amazon Nova Pro | Amazon | 300K context, chat optimized, complex reasoning, math |
|
|
228
|
+
| `deepseek.r1-v1:0` | DeepSeek R1 | DeepSeek | Advanced reasoning and code generation |
|
|
229
|
+
| `openai.gpt-oss-120b-1:0` | OpenAI GPT OSS 120B | OpenAI | Hybrid reasoning, extended thinking, efficient research |
|
|
230
|
+
| `qwen.qwen3-32b-v1:0` | Qwen 3 32B | Qwen | Text generation and code generation |
|
|
231
|
+
|
|
232
|
+
## Prerequisites
|
|
233
|
+
|
|
234
|
+
- **Node.js**: Version 18.0.0 or higher
|
|
235
|
+
- **Moorcheh Account**: Active account with API access
|
|
236
|
+
- **Git**: For cloning the repository
|
|
237
|
+
|
|
238
|
+
## Development
|
|
239
|
+
|
|
240
|
+
### Development Mode
|
|
241
|
+
For development with auto-reload:
|
|
242
|
+
```bash
|
|
243
|
+
npm run dev
|
|
244
|
+
```
|
|
245
|
+
|
|
246
|
+
### Available Scripts
|
|
247
|
+
|
|
248
|
+
| Script | Description |
|
|
249
|
+
|--------|-------------|
|
|
250
|
+
| `npm start` | Start the MCP server |
|
|
251
|
+
| `npm run dev` | Start in development mode with auto-reload |
|
|
252
|
+
| `npm test` | Run tests (when available) |
|
|
253
|
+
|
|
254
|
+
|
|
255
|
+
## Environment Variables
|
|
256
|
+
|
|
257
|
+
| Variable | Description | Required | Default |
|
|
258
|
+
|----------|-------------|----------|---------|
|
|
259
|
+
| `MOORCHEH_API_KEY` | Your Moorcheh API key | Yes | None |
|
|
260
|
+
|
|
261
|
+
## Troubleshooting
|
|
262
|
+
|
|
263
|
+
### Common Issues
|
|
264
|
+
|
|
265
|
+
1. **"Missing required API_KEY environment variable"**
|
|
266
|
+
- Make sure you've created a `.env` file
|
|
267
|
+
- Verify your API key is correctly set in the `.env` file
|
|
268
|
+
- Check that the API key is valid in your Moorcheh dashboard
|
|
269
|
+
|
|
270
|
+
2. **"Forbidden: Check your API key"**
|
|
271
|
+
- Your API key may be invalid or expired
|
|
272
|
+
- Generate a new API key from the Moorcheh dashboard
|
|
273
|
+
- Update your `.env` file with the new key
|
|
274
|
+
|
|
275
|
+
3. **"Network Error"**
|
|
276
|
+
- Check your internet connection
|
|
277
|
+
- Verify the API endpoints are accessible
|
|
278
|
+
- Try again in a few minutes
|
|
279
|
+
|
|
280
|
+
### Getting Help
|
|
281
|
+
|
|
282
|
+
- **GitHub Issues**: [https://github.com/moorcheh-ai/moorcheh-mcp/issues](https://github.com/moorcheh-ai/moorcheh-mcp/issues)
|
|
283
|
+
- **Moorcheh Documentation**: [https://console.moorcheh.ai/docs/mcp](https://console.moorcheh.ai/docs/mcp)
|
|
284
|
+
- **Moorcheh Dashboard**: [https://console.moorcheh.ai](https://console.moorcheh.ai)
|
|
285
|
+
|
|
286
|
+
## License
|
|
287
|
+
|
|
288
|
+
This project is licensed under the Apache License 2.0 - see the [LICENSE](LICENSE) file for details.
|
|
289
|
+
|
|
290
|
+
## Contributing
|
|
291
|
+
|
|
292
|
+
We welcome contributions! Please feel free to submit a Pull Request.
|
|
293
|
+
|
|
294
|
+
## Changelog
|
|
295
|
+
|
|
296
|
+
For a detailed list of changes, see [CHANGELOG.md](CHANGELOG.md).
|