@isnow890/naver-search-mcp 1.0.41 → 1.0.43

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 CHANGED
@@ -8,7 +8,7 @@
8
8
 
9
9
  MCP server for Naver Search API and DataLab API integration, enabling comprehensive search across various Naver services and data trend analysis.
10
10
 
11
- > ⚠️ **Smithery Installation Notice**: Due to compatibility issues with the Smithery platform, **direct installation is recommended starting from version 1.0.40**. Smithery installation is only supported up to version 1.0.30.
11
+ > ⚠️ **Smithery Installation Notice**: Due to compatibility issues with the Smithery platform, **npx installation is recommended starting from version 1.0.40**. Smithery installation is only supported up to version 1.0.30.
12
12
 
13
13
  #### Version History
14
14
 
@@ -17,7 +17,6 @@ MCP server for Naver Search API and DataLab API integration, enabling comprehens
17
17
  - `find_category` tool added - with fuzzy matching and ranking system support
18
18
  - Enhanced parameter validation with Zod schema
19
19
  - Improved category search workflow
20
- - Implemented level-based category ranking system (major categories prioritized)
21
20
 
22
21
  ###### 1.0.30 (2025-08-04)
23
22
 
@@ -39,10 +38,6 @@ MCP server for Naver Search API and DataLab API integration, enabling comprehens
39
38
 
40
39
  - Initial release
41
40
 
42
- #### Information
43
-
44
- **If you want to install the MCP via npm, do NOT use @mseep/server-naver-search (https://www.npmjs.com/package/@mseep/server-naver-search). That package is a copy of my work and was published without my permission. The npx version of that package is also broken and will not work properly. Please use this official package instead.**
45
-
46
41
  #### Prerequisites
47
42
 
48
43
  - Naver Developers API Key (Client ID and Secret)
@@ -66,7 +61,7 @@ MCP server for Naver Search API and DataLab API integration, enabling comprehens
66
61
 
67
62
  #### 🆕 Category Search
68
63
 
69
- - **find_category**: Category search tool - No more need to manually check category numbers via URL for trend and shopping insight searches.
64
+ - **find_category**: Category search tool - No more need to manually check category numbers via URL for trend and shopping insight searches. The LLM will find it out as you say.
70
65
 
71
66
  #### Search Tools
72
67
 
@@ -94,43 +89,6 @@ MCP server for Naver Search API and DataLab API integration, enabling comprehens
94
89
  - **datalab_shopping_keyword_by_gender**: Analyze shopping keyword trends by gender
95
90
  - **datalab_shopping_keyword_by_age**: Analyze shopping keyword trends by age group
96
91
 
97
- ### DataLab Shopping Category Codes
98
-
99
- For DataLab shopping analysis tools, you need to use specific **8-digit category codes**. Here are some common examples:
100
-
101
- #### Popular Category Codes:
102
-
103
- - **50000000**: Fashion/Clothing (패션의류)
104
- - **50000002**: Cosmetics/Beauty (화장품/미용)
105
- - **50000003**: Digital/Home Appliances (디지털/가전)
106
- - **50000004**: Sports/Leisure (스포츠/레저)
107
- - **50000005**: Automotive/Tools (자동차/공구)
108
- - **50000006**: Books/Music/DVDs (도서/음반/DVD)
109
- - **50000007**: Toys/Hobbies (완구/취미)
110
- - **50000008**: Food/Beverages (식품/음료)
111
- - **50000009**: Health/Medical (건강/의료용품)
112
- - **50000010**: Household/Living (생활/주방용품)
113
-
114
- #### How to Find Category Codes:
115
-
116
- 1. Visit [Naver Shopping](https://shopping.naver.com)
117
- 2. Navigate to desired category
118
- 3. Check the `cat_id` parameter in the URL
119
- 4. Use the 8-digit code (e.g., `cat_id=50000000` → use `"50000000"`)
120
-
121
- #### Usage Example:
122
-
123
- When using shopping category tools, specify category like:
124
-
125
- ```json
126
- {
127
- "category": "50000000",
128
- "startDate": "2024-01-01",
129
- "endDate": "2024-01-31",
130
- "timeUnit": "month"
131
- }
132
- ```
133
-
134
92
  #### Complete Category List:
135
93
 
136
94
  For a complete list of category codes, you can download from Naver Shopping Partner Center or extract them by browsing Naver Shopping categories.
package/dist/src/index.js CHANGED
@@ -1,3 +1,4 @@
1
+ #!/usr/bin/env node
1
2
  import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
2
3
  import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";
3
4
  import { z } from "zod";
@@ -23,7 +24,7 @@ export function createNaverSearchServer({ config, }) {
23
24
  // Create a new MCP server only once
24
25
  const server = new McpServer({
25
26
  name: "naver-search",
26
- version: "1.0.40",
27
+ version: "1.0.43",
27
28
  });
28
29
  // Initialize Naver client with config
29
30
  const client = NaverSearchClient.getInstance();
@@ -302,6 +303,11 @@ try {
302
303
  process.argv[1].endsWith("index.js") ||
303
304
  process.argv[1].includes("naver-search-mcp");
304
305
  }
306
+ // Additional check for NPX execution
307
+ if (!isMainModule && process.argv.some(arg => arg.includes('naver-search-mcp'))) {
308
+ isMainModule = true;
309
+ console.error("Detected NPX execution, forcing main module mode");
310
+ }
305
311
  }
306
312
  catch (error) {
307
313
  // Fallback for environments where import.meta causes issues
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@isnow890/naver-search-mcp",
3
- "version": "1.0.41",
3
+ "version": "1.0.43",
4
4
  "description": "Naver Search MCP Server",
5
5
  "main": "dist/src/index.js",
6
6
  "module": "./src/index.ts",