@laskarks/mcp-rag-node 1.0.7 → 1.0.8
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 +44 -46
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -2,6 +2,50 @@
|
|
|
2
2
|
|
|
3
3
|
MCP (Model Context Protocol) server for RAG (Retrieval-Augmented Generation) using Pinecone, OpenAI-compatible embedding APIs, and the official MCP SDK. Save documents and search by semantic similarity via MCP tools.
|
|
4
4
|
|
|
5
|
+
### Add to MCP clients
|
|
6
|
+
|
|
7
|
+
**Claude Desktop** (`claude_desktop_config.json`):
|
|
8
|
+
|
|
9
|
+
```json
|
|
10
|
+
{
|
|
11
|
+
"mcpServers": {
|
|
12
|
+
"rag": {
|
|
13
|
+
"command": "npx",
|
|
14
|
+
"args": ["-y", "@laskarks/mcp-rag-node@latest"],
|
|
15
|
+
"env": {
|
|
16
|
+
"APIKEY": "sk-...",
|
|
17
|
+
"EMBEDDING_MODEL": "text-embedding-3-small",
|
|
18
|
+
"RAG_CHUNK_MAX_TOKENS": 1536,
|
|
19
|
+
"PINECONE_API_KEY": "...",
|
|
20
|
+
"PINECONE_INDEX": "rag-index",
|
|
21
|
+
"PROVIDER": "openai"
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
**Cursor** (`.cursor/mcp.json` or MCP settings):
|
|
29
|
+
|
|
30
|
+
```json
|
|
31
|
+
{
|
|
32
|
+
"mcpServers": {
|
|
33
|
+
"rag": {
|
|
34
|
+
"command": "npx",
|
|
35
|
+
"args": ["-y", "@laskarks/mcp-rag-node@latest"],
|
|
36
|
+
"env": {
|
|
37
|
+
"APIKEY": "sk-...",
|
|
38
|
+
"EMBEDDING_MODEL": "text-embedding-3-small",
|
|
39
|
+
"RAG_CHUNK_MAX_TOKENS": 1536,
|
|
40
|
+
"PINECONE_API_KEY": "...",
|
|
41
|
+
"PINECONE_INDEX": "rag-index",
|
|
42
|
+
"PROVIDER": "openai"
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
```
|
|
48
|
+
|
|
5
49
|
## Tools
|
|
6
50
|
|
|
7
51
|
| Tool | Description |
|
|
@@ -77,52 +121,6 @@ PROVIDER=openai
|
|
|
77
121
|
npm start
|
|
78
122
|
```
|
|
79
123
|
|
|
80
|
-
### Add to MCP clients
|
|
81
|
-
|
|
82
|
-
Install the package first: `npm i @laskarks/mcp-rag-node`
|
|
83
|
-
|
|
84
|
-
**Claude Desktop** (`claude_desktop_config.json`):
|
|
85
|
-
|
|
86
|
-
```json
|
|
87
|
-
{
|
|
88
|
-
"mcpServers": {
|
|
89
|
-
"rag": {
|
|
90
|
-
"command": "npx",
|
|
91
|
-
"args": ["-y", "@laskarks/mcp-rag-node@latest"],
|
|
92
|
-
"env": {
|
|
93
|
-
"APIKEY": "sk-...",
|
|
94
|
-
"EMBEDDING_MODEL": "text-embedding-3-small",
|
|
95
|
-
"RAG_CHUNK_MAX_TOKENS": 1536,
|
|
96
|
-
"PINECONE_API_KEY": "...",
|
|
97
|
-
"PINECONE_INDEX": "rag-index",
|
|
98
|
-
"PROVIDER": "openai"
|
|
99
|
-
}
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
```
|
|
104
|
-
|
|
105
|
-
**Cursor** (`.cursor/mcp.json` or MCP settings):
|
|
106
|
-
|
|
107
|
-
```json
|
|
108
|
-
{
|
|
109
|
-
"mcpServers": {
|
|
110
|
-
"rag": {
|
|
111
|
-
"command": "npx",
|
|
112
|
-
"args": ["-y", "@laskarks/mcp-rag-node@latest"],
|
|
113
|
-
"env": {
|
|
114
|
-
"APIKEY": "sk-...",
|
|
115
|
-
"EMBEDDING_MODEL": "text-embedding-3-small",
|
|
116
|
-
"RAG_CHUNK_MAX_TOKENS": 1536,
|
|
117
|
-
"PINECONE_API_KEY": "...",
|
|
118
|
-
"PINECONE_INDEX": "rag-index",
|
|
119
|
-
"PROVIDER": "openai"
|
|
120
|
-
}
|
|
121
|
-
}
|
|
122
|
-
}
|
|
123
|
-
}
|
|
124
|
-
```
|
|
125
|
-
|
|
126
124
|
### Development
|
|
127
125
|
|
|
128
126
|
```bash
|