@g99/lightrag-mcp-server 1.0.0 → 1.0.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.
Files changed (3) hide show
  1. package/README.md +13 -17
  2. package/package.json +3 -4
  3. package/wrapper.js +48 -59
package/README.md CHANGED
@@ -19,28 +19,24 @@ LightRAG MCP Server provides complete integration with LightRAG's API, offering
19
19
 
20
20
  ## Installation
21
21
 
22
- ### Using uvx (Python - Recommended)
23
-
24
- ```bash
25
- uvx lightrag-mcp-server
26
- ```
27
-
28
- ### Using npx (Node.js)
22
+ ### Quick Start (Recommended)
29
23
 
30
24
  ```bash
31
25
  npx @g99/lightrag-mcp-server
32
26
  ```
33
27
 
34
- ### Using pip (Global Installation)
28
+ ### Global Installation
35
29
 
36
30
  ```bash
37
- pip install lightrag-mcp-server
31
+ npm install -g @g99/lightrag-mcp-server
38
32
  ```
39
33
 
40
- ### Using npm (Global Installation)
34
+ ### From Source
41
35
 
42
36
  ```bash
43
- npm install -g @g99/lightrag-mcp-server
37
+ git clone https://github.com/lalitsuryan/lightragmcp.git
38
+ cd lightragmcp
39
+ npm install
44
40
  ```
45
41
 
46
42
  ## Prerequisites
@@ -95,8 +91,8 @@ Add to your `claude_desktop_config.json`:
95
91
  {
96
92
  "mcpServers": {
97
93
  "lightrag": {
98
- "command": "uvx",
99
- "args": ["lightrag-mcp-server"],
94
+ "command": "npx",
95
+ "args": ["@g99/lightrag-mcp-server"],
100
96
  "env": {
101
97
  "LIGHTRAG_SERVER_URL": "http://localhost:9621",
102
98
  "LIGHTRAG_API_KEY": "your_api_key_here"
@@ -114,8 +110,8 @@ Add to your MCP settings:
114
110
  {
115
111
  "mcpServers": {
116
112
  "lightrag": {
117
- "command": "uvx",
118
- "args": ["lightrag-mcp-server"],
113
+ "command": "npx",
114
+ "args": ["@g99/lightrag-mcp-server"],
119
115
  "env": {
120
116
  "LIGHTRAG_SERVER_URL": "http://localhost:9621",
121
117
  "LIGHTRAG_API_KEY": "your_api_key_here"
@@ -588,8 +584,8 @@ LightRAG supports multiple query modes for different use cases:
588
584
 
589
585
  ```bash
590
586
  # Clone the repository
591
- git clone https://github.com/yourusername/lightrag-mcp-server.git
592
- cd lightrag-mcp-server
587
+ git clone https://github.com/lalitsuryan/lightragmcp.git
588
+ cd lightragmcp
593
589
 
594
590
  # For Python development
595
591
  pip install -e ".[dev]"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@g99/lightrag-mcp-server",
3
- "version": "1.0.0",
3
+ "version": "1.0.2",
4
4
  "description": "Model Context Protocol (MCP) server for LightRAG - Complete RAG and Knowledge Graph integration with 30+ tools",
5
5
  "keywords": [
6
6
  "mcp",
@@ -28,8 +28,7 @@
28
28
  "access": "public"
29
29
  },
30
30
  "scripts": {
31
- "prepare": "echo 'This is a Python package wrapper for npm. Install the Python package: pip install lightrag-mcp-server'",
32
- "postinstall": "echo 'LightRAG MCP Server is a Python package. Please ensure Python 3.10+ is installed and run: pip install lightrag-mcp-server'"
31
+ "postinstall": "node wrapper.js"
33
32
  },
34
33
  "bin": {
35
34
  "lightrag-mcp-server": "wrapper.js"
@@ -42,4 +41,4 @@
42
41
  "engines": {
43
42
  "node": ">=18.0.0"
44
43
  }
45
- }
44
+ }
package/wrapper.js CHANGED
@@ -1,68 +1,57 @@
1
1
  #!/usr/bin/env node
2
2
 
3
3
  /**
4
- * LightRAG MCP Server - Node.js Wrapper
4
+ * LightRAG MCP Server - npm Package
5
5
  *
6
- * This is a wrapper script that runs the Python-based LightRAG MCP Server.
7
- * The actual implementation is in Python. This wrapper helps with npx execution.
6
+ * This package provides easy installation via npm/npx for the LightRAG MCP Server.
7
+ * The actual implementation requires a running LightRAG server.
8
8
  *
9
9
  * Author: Lalit Suryan
10
10
  * License: MIT
11
11
  */
12
12
 
13
- const { spawn } = require('child_process');
14
- const path = require('path');
15
-
16
- console.log('LightRAG MCP Server');
17
- console.log('===================\n');
18
-
19
- // Check if Python is available
20
- const checkPython = () => {
21
- return new Promise((resolve) => {
22
- const python = spawn('python', ['--version']);
23
-
24
- python.on('error', () => {
25
- const python3 = spawn('python3', ['--version']);
26
- python3.on('error', () => resolve(false));
27
- python3.on('close', (code) => resolve(code === 0 ? 'python3' : false));
28
- });
29
-
30
- python.on('close', (code) => resolve(code === 0 ? 'python' : false));
31
- });
32
- };
33
-
34
- const main = async () => {
35
- const pythonCmd = await checkPython();
36
-
37
- if (!pythonCmd) {
38
- console.error('Error: Python 3.10+ is required but not found.');
39
- console.error('\nPlease install Python from: https://www.python.org/downloads/');
40
- console.error('\nOr use uvx directly:');
41
- console.error(' uvx lightrag-mcp-server');
42
- process.exit(1);
43
- }
44
-
45
- console.log(`Found Python: ${pythonCmd}`);
46
- console.log('\nAttempting to run LightRAG MCP Server...\n');
47
-
48
- // Try to run the installed Python package
49
- const server = spawn(pythonCmd, ['-m', 'lightrag_mcp_server'], {
50
- stdio: 'inherit',
51
- shell: true
52
- });
53
-
54
- server.on('error', (error) => {
55
- console.error('\nError: LightRAG MCP Server Python package not found.');
56
- console.error('\nPlease install it first:');
57
- console.error(' pip install lightrag-mcp-server');
58
- console.error('\nOr use uvx (recommended):');
59
- console.error(' uvx lightrag-mcp-server');
60
- process.exit(1);
61
- });
62
-
63
- server.on('close', (code) => {
64
- process.exit(code);
65
- });
66
- };
67
-
68
- main();
13
+ console.log('╔═══════════════════════════════════════════════════════╗');
14
+ console.log('║ LightRAG MCP Server - @g99/lightrag-mcp-server ║');
15
+ console.log('╚═══════════════════════════════════════════════════════╝');
16
+ console.log('');
17
+ console.log('📦 Package Information:');
18
+ console.log(' • Version: 1.0.1');
19
+ console.log(' • Author: Lalit Suryan');
20
+ console.log(' • Repository: https://github.com/lalitsuryan/lightragmcp');
21
+ console.log('');
22
+ console.log('⚠️ Installation Notice:');
23
+ console.log('');
24
+ console.log('This is an npm wrapper package for the LightRAG MCP Server.');
25
+ console.log('To use this server, you need:');
26
+ console.log('');
27
+ console.log('1. A running LightRAG server');
28
+ console.log(' Install: pip install "lightrag-hku[api]"');
29
+ console.log(' Run: lightrag-server');
30
+ console.log('');
31
+ console.log('2. Configure your MCP client (e.g., Claude Desktop):');
32
+ console.log('');
33
+ console.log(' {');
34
+ console.log(' "mcpServers": {');
35
+ console.log(' "lightrag": {');
36
+ console.log(' "command": "npx",');
37
+ console.log(' "args": ["@g99/lightrag-mcp-server"],');
38
+ console.log(' "env": {');
39
+ console.log(' "LIGHTRAG_SERVER_URL": "http://localhost:9621"');
40
+ console.log(' }');
41
+ console.log(' }');
42
+ console.log(' }');
43
+ console.log(' }');
44
+ console.log('');
45
+ console.log('📚 Documentation:');
46
+ console.log(' https://github.com/lalitsuryan/lightragmcp#readme');
47
+ console.log('');
48
+ console.log('❓ Support:');
49
+ console.log(' Issues: https://github.com/lalitsuryan/lightragmcp/issues');
50
+ console.log('');
51
+ console.log('════════════════════════════════════════════════════════');
52
+ console.log('');
53
+ console.log('⚠️ This package is currently in setup mode.');
54
+ console.log(' Please configure it in your MCP client to use it.');
55
+ console.log('');
56
+
57
+ process.exit(0);