@nekzus/mcp-server 1.5.0 → 1.5.1
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 +149 -265
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
#
|
|
1
|
+
# NPM Analysis MCP Server
|
|
2
2
|
|
|
3
3
|
<div align="center">
|
|
4
4
|
|
|
@@ -10,56 +10,136 @@
|
|
|
10
10
|
[](https://opensource.org/licenses/MIT)
|
|
11
11
|
[](https://paypal.me/maseortega)
|
|
12
12
|
|
|
13
|
-
<h2>🤖 Model Context Protocol Server for NPM Analysis</h2>
|
|
14
|
-
|
|
15
|
-
**AI-Powered Analysis • MCP Integration • Package Intelligence**
|
|
16
|
-
|
|
17
|
-
_Advanced NPM package analysis through Model Context Protocol (MCP) for AI-assisted development_
|
|
18
|
-
|
|
19
|
-
<hr>
|
|
20
|
-
|
|
21
|
-
<h3>🔗 MCP-Ready • 📊 AI-Enhanced • 🚀 Real-Time Analysis</h3>
|
|
22
|
-
|
|
23
|
-
_Seamlessly integrate NPM package analysis with Claude and other AI assistants through MCP_
|
|
24
|
-
|
|
25
|
-
[Key Features](#key-features) •
|
|
26
|
-
[Quick Start](#quick-start) •
|
|
27
|
-
[Documentation](#documentation) •
|
|
28
|
-
[Examples](#examples) •
|
|
29
|
-
[Support](#support)
|
|
30
|
-
|
|
31
13
|
</div>
|
|
32
14
|
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
15
|
+
Node.js server implementing Model Context Protocol (MCP) for comprehensive NPM package analysis.
|
|
16
|
+
|
|
17
|
+
## Features
|
|
18
|
+
|
|
19
|
+
- Version analysis and tracking
|
|
20
|
+
- Dependency analysis and mapping
|
|
21
|
+
- Security vulnerability scanning
|
|
22
|
+
- Package quality metrics
|
|
23
|
+
- Download trends and statistics
|
|
24
|
+
- TypeScript support verification
|
|
25
|
+
- Package size analysis
|
|
26
|
+
- Maintenance metrics
|
|
27
|
+
- Real-time package comparisons
|
|
28
|
+
|
|
29
|
+
Note: The server provides AI-assisted analysis through MCP integration.
|
|
30
|
+
|
|
31
|
+
## API
|
|
32
|
+
|
|
33
|
+
### Resources
|
|
34
|
+
|
|
35
|
+
- `npm://registry`: NPM Registry interface
|
|
36
|
+
- `npm://security`: Security analysis interface
|
|
37
|
+
- `npm://metrics`: Package metrics interface
|
|
38
|
+
|
|
39
|
+
### Tools
|
|
40
|
+
|
|
41
|
+
#### npmVersions
|
|
42
|
+
- Get all versions of a package
|
|
43
|
+
- Input: `packages` (string[])
|
|
44
|
+
- Returns: Version history with release dates
|
|
45
|
+
|
|
46
|
+
#### npmLatest
|
|
47
|
+
- Get latest version information
|
|
48
|
+
- Input: `packages` (string[])
|
|
49
|
+
- Returns: Latest version details and changelog
|
|
50
|
+
|
|
51
|
+
#### npmDeps
|
|
52
|
+
- Analyze package dependencies
|
|
53
|
+
- Input: `packages` (string[])
|
|
54
|
+
- Returns: Complete dependency tree analysis
|
|
55
|
+
|
|
56
|
+
#### npmTypes
|
|
57
|
+
- Check TypeScript support
|
|
58
|
+
- Input: `packages` (string[])
|
|
59
|
+
- Returns: TypeScript compatibility status
|
|
60
|
+
|
|
61
|
+
#### npmSize
|
|
62
|
+
- Analyze package size
|
|
63
|
+
- Input: `packages` (string[])
|
|
64
|
+
- Returns: Bundle size and import cost analysis
|
|
65
|
+
|
|
66
|
+
#### npmVulnerabilities
|
|
67
|
+
- Scan for security vulnerabilities
|
|
68
|
+
- Input: `packages` (string[])
|
|
69
|
+
- Returns: Security advisories and severity ratings
|
|
70
|
+
|
|
71
|
+
#### npmTrends
|
|
72
|
+
- Get download trends
|
|
73
|
+
- Input:
|
|
74
|
+
- `packages` (string[])
|
|
75
|
+
- `period` ("last-week" | "last-month" | "last-year")
|
|
76
|
+
- Returns: Download statistics over time
|
|
77
|
+
|
|
78
|
+
#### npmCompare
|
|
79
|
+
- Compare multiple packages
|
|
80
|
+
- Input: `packages` (string[])
|
|
81
|
+
- Returns: Detailed comparison metrics
|
|
82
|
+
|
|
83
|
+
#### npmMaintainers
|
|
84
|
+
- Get package maintainers
|
|
85
|
+
- Input: `packages` (string[])
|
|
86
|
+
- Returns: Maintainer information and activity
|
|
87
|
+
|
|
88
|
+
#### npmScore
|
|
89
|
+
- Get package quality score
|
|
90
|
+
- Input: `packages` (string[])
|
|
91
|
+
- Returns: Comprehensive quality metrics
|
|
92
|
+
|
|
93
|
+
#### npmPackageReadme
|
|
94
|
+
- Get package README
|
|
95
|
+
- Input: `packages` (string[])
|
|
96
|
+
- Returns: Formatted README content
|
|
97
|
+
|
|
98
|
+
#### npmSearch
|
|
99
|
+
- Search for packages
|
|
100
|
+
- Input:
|
|
101
|
+
- `query` (string)
|
|
102
|
+
- `limit` (number, optional)
|
|
103
|
+
- Returns: Matching packages with metadata
|
|
104
|
+
|
|
105
|
+
#### npmLicenseCompatibility
|
|
106
|
+
- Check license compatibility
|
|
107
|
+
- Input: `packages` (string[])
|
|
108
|
+
- Returns: License analysis and compatibility info
|
|
109
|
+
|
|
110
|
+
#### npmRepoStats
|
|
111
|
+
- Get repository statistics
|
|
112
|
+
- Input: `packages` (string[])
|
|
113
|
+
- Returns: GitHub/repository metrics
|
|
114
|
+
|
|
115
|
+
#### npmDeprecated
|
|
116
|
+
- Check for deprecation
|
|
117
|
+
- Input: `packages` (string[])
|
|
118
|
+
- Returns: Deprecation status and alternatives
|
|
119
|
+
|
|
120
|
+
#### npmChangelogAnalysis
|
|
121
|
+
- Analyze package changelogs
|
|
122
|
+
- Input: `packages` (string[])
|
|
123
|
+
- Returns: Changelog summaries and impact analysis
|
|
124
|
+
|
|
125
|
+
#### npmAlternatives
|
|
126
|
+
- Find package alternatives
|
|
127
|
+
- Input: `packages` (string[])
|
|
128
|
+
- Returns: Similar packages with comparisons
|
|
129
|
+
|
|
130
|
+
#### npmQuality
|
|
131
|
+
- Assess package quality
|
|
132
|
+
- Input: `packages` (string[])
|
|
133
|
+
- Returns: Quality metrics and scores
|
|
134
|
+
|
|
135
|
+
#### npmMaintenance
|
|
136
|
+
- Check maintenance status
|
|
137
|
+
- Input: `packages` (string[])
|
|
138
|
+
- Returns: Maintenance activity metrics
|
|
139
|
+
|
|
140
|
+
## Usage with Claude Desktop
|
|
141
|
+
|
|
142
|
+
Add this to your `claude_desktop_config.json`:
|
|
63
143
|
|
|
64
144
|
```json
|
|
65
145
|
{
|
|
@@ -78,230 +158,34 @@ Configuration file locations:
|
|
|
78
158
|
- macOS: `~/Library/Application Support/claude-desktop/claude_desktop_config.json`
|
|
79
159
|
- Linux: `~/.config/claude-desktop/claude_desktop_config.json`
|
|
80
160
|
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
```typescript
|
|
84
|
-
import { McpServer } from '@nekzus/mcp-server';
|
|
85
|
-
|
|
86
|
-
// Initialize MCP server with required metadata
|
|
87
|
-
const server = new McpServer({
|
|
88
|
-
name: 'npm-analyzer',
|
|
89
|
-
version: '1.0.0',
|
|
90
|
-
description: 'MCP-compliant NPM package analysis server'
|
|
91
|
-
});
|
|
92
|
-
|
|
93
|
-
// Connect using MCP stdio transport
|
|
94
|
-
await server.connect(new StdioServerTransport());
|
|
95
|
-
|
|
96
|
-
// Server automatically registers all available NPM analysis tools
|
|
97
|
-
// and handles MCP protocol communication
|
|
98
|
-
```
|
|
161
|
+
## NPX
|
|
99
162
|
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
# Test with MCP Inspector during development
|
|
113
|
-
npx @modelcontextprotocol/inspector node ./dist/index.js
|
|
114
|
-
|
|
115
|
-
# Monitor server logs and tool execution
|
|
163
|
+
```json
|
|
164
|
+
{
|
|
165
|
+
"mcpServers": {
|
|
166
|
+
"npmAnalyzer": {
|
|
167
|
+
"command": "npx",
|
|
168
|
+
"args": [
|
|
169
|
+
"-y",
|
|
170
|
+
"@nekzus/mcp-server"
|
|
171
|
+
]
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
}
|
|
116
175
|
```
|
|
117
176
|
|
|
118
|
-
##
|
|
119
|
-
|
|
120
|
-
@nekzus/mcp-server is a specialized server implementation that provides deep insights into NPM packages through the Model Context Protocol (MCP). It offers a comprehensive suite of analysis tools designed to help developers make informed decisions about package selection, security, and maintenance.
|
|
121
|
-
|
|
122
|
-
### 🌟 Why Choose This Package?
|
|
123
|
-
|
|
124
|
-
- **Comprehensive Analysis**: Get detailed insights into package quality, security, dependencies, and usage metrics
|
|
125
|
-
- **Real-Time Data**: Access up-to-date information directly from npm and related services
|
|
126
|
-
- **Batch Processing**: Analyze multiple packages simultaneously for efficient comparisons
|
|
127
|
-
- **Type Safety**: Full TypeScript support with comprehensive type definitions
|
|
128
|
-
- **MCP Integration**: Seamless integration with Claude and other AI assistants through MCP
|
|
129
|
-
- **Performance Focused**: Optimized for speed with concurrent processing and caching capabilities
|
|
130
|
-
|
|
131
|
-
## 📊 Key Features
|
|
132
|
-
|
|
133
|
-
### 📦 Package Intelligence
|
|
134
|
-
- **Version Analysis**
|
|
135
|
-
- Track all available versions and release patterns
|
|
136
|
-
- Get detailed changelogs and version histories
|
|
137
|
-
- Monitor latest releases and updates
|
|
138
|
-
- Compare version differences
|
|
139
|
-
|
|
140
|
-
- **Dependency Analysis**
|
|
141
|
-
- Map complete dependency trees
|
|
142
|
-
- Identify potential conflicts
|
|
143
|
-
- Track outdated dependencies
|
|
144
|
-
- Analyze peer dependencies
|
|
145
|
-
- Check for circular dependencies
|
|
146
|
-
|
|
147
|
-
- **Security Assessment**
|
|
148
|
-
- Scan for known vulnerabilities
|
|
149
|
-
- Monitor security advisories
|
|
150
|
-
- Track patch availability
|
|
151
|
-
- Assess dependency security
|
|
152
|
-
- Get severity ratings
|
|
153
|
-
|
|
154
|
-
### 🔍 Quality Metrics
|
|
155
|
-
- **Code Quality**
|
|
156
|
-
- Maintenance scores
|
|
157
|
-
- Code coverage metrics
|
|
158
|
-
- Documentation quality
|
|
159
|
-
- Type definitions status
|
|
160
|
-
- Best practices compliance
|
|
161
|
-
|
|
162
|
-
- **Community Health**
|
|
163
|
-
- Download trends
|
|
164
|
-
- GitHub activity
|
|
165
|
-
- Contributor metrics
|
|
166
|
-
- Issue response times
|
|
167
|
-
- Release frequency
|
|
168
|
-
|
|
169
|
-
- **Performance Metrics**
|
|
170
|
-
- Bundle size analysis
|
|
171
|
-
- Tree-shaking effectiveness
|
|
172
|
-
- Runtime performance
|
|
173
|
-
- Memory footprint
|
|
174
|
-
- Load time impact
|
|
175
|
-
|
|
176
|
-
### 🛠 Technical Capabilities
|
|
177
|
-
- **Multi-Package Processing**
|
|
178
|
-
- Concurrent analysis
|
|
179
|
-
- Batch comparisons
|
|
180
|
-
- Aggregate metrics
|
|
181
|
-
- Cross-package insights
|
|
182
|
-
|
|
183
|
-
- **Data Integration**
|
|
184
|
-
- NPM Registry
|
|
185
|
-
- GitHub API
|
|
186
|
-
- Security Databases
|
|
187
|
-
- Download Statistics
|
|
188
|
-
- Quality Metrics
|
|
189
|
-
|
|
190
|
-
## 🚀 Quick Start
|
|
191
|
-
|
|
192
|
-
### Installation
|
|
177
|
+
## Build
|
|
193
178
|
|
|
194
179
|
```bash
|
|
195
|
-
#
|
|
196
|
-
npm install
|
|
197
|
-
|
|
198
|
-
# Using yarn
|
|
199
|
-
yarn add @nekzus/mcp-server
|
|
200
|
-
|
|
201
|
-
# Using pnpm
|
|
202
|
-
pnpm add @nekzus/mcp-server
|
|
203
|
-
```
|
|
204
|
-
|
|
205
|
-
### Basic Usage
|
|
206
|
-
|
|
207
|
-
```typescript
|
|
208
|
-
import { McpServer } from '@nekzus/mcp-server';
|
|
209
|
-
|
|
210
|
-
// Initialize the server
|
|
211
|
-
const server = new McpServer({
|
|
212
|
-
name: 'npm-analysis',
|
|
213
|
-
version: '1.0.0'
|
|
214
|
-
});
|
|
215
|
-
|
|
216
|
-
// Start the server with stdio transport
|
|
217
|
-
await server.connect(new StdioServerTransport());
|
|
218
|
-
```
|
|
219
|
-
|
|
220
|
-
## 📖 Documentation
|
|
221
|
-
|
|
222
|
-
### Tool Categories
|
|
223
|
-
|
|
224
|
-
#### 1. Version Analysis Tools
|
|
225
|
-
```typescript
|
|
226
|
-
// Get all versions of a package
|
|
227
|
-
const versions = await npmVersions({ packageName: 'react' });
|
|
228
|
-
|
|
229
|
-
// Get latest version details
|
|
230
|
-
const latest = await npmLatest({ packageName: 'express' });
|
|
180
|
+
# Build with npm
|
|
181
|
+
npm install
|
|
182
|
+
npm run build
|
|
231
183
|
```
|
|
232
184
|
|
|
233
|
-
|
|
234
|
-
```typescript
|
|
235
|
-
// Check dependencies
|
|
236
|
-
const deps = await npmDeps({ packageName: 'next' });
|
|
237
|
-
|
|
238
|
-
// Verify TypeScript support
|
|
239
|
-
const types = await npmTypes({ packageName: 'lodash' });
|
|
240
|
-
```
|
|
241
|
-
|
|
242
|
-
#### 3. Metrics Analysis Tools
|
|
243
|
-
```typescript
|
|
244
|
-
// Compare multiple packages
|
|
245
|
-
const comparison = await npmCompare({
|
|
246
|
-
packages: ['react', 'preact', 'vue']
|
|
247
|
-
});
|
|
248
|
-
|
|
249
|
-
// Get download trends
|
|
250
|
-
const trends = await npmTrends({
|
|
251
|
-
packages: ['axios', 'fetch'],
|
|
252
|
-
period: 'last-month'
|
|
253
|
-
});
|
|
254
|
-
```
|
|
255
|
-
|
|
256
|
-
## 🎯 Examples
|
|
257
|
-
|
|
258
|
-
### Analyzing Multiple Packages
|
|
259
|
-
```typescript
|
|
260
|
-
// Compare security of multiple packages
|
|
261
|
-
const security = await npmVulnerabilities({
|
|
262
|
-
packages: ['express', 'fastify', 'koa']
|
|
263
|
-
});
|
|
264
|
-
|
|
265
|
-
// Get quality metrics for frameworks
|
|
266
|
-
const quality = await npmQuality({
|
|
267
|
-
packages: ['next', 'nuxt', 'remix']
|
|
268
|
-
});
|
|
269
|
-
```
|
|
270
|
-
|
|
271
|
-
### Tracking Package Health
|
|
272
|
-
```typescript
|
|
273
|
-
// Get comprehensive package score
|
|
274
|
-
const score = await npmScore({
|
|
275
|
-
packageName: 'react'
|
|
276
|
-
});
|
|
277
|
-
|
|
278
|
-
// Check maintenance status
|
|
279
|
-
const maintenance = await npmMaintenance({
|
|
280
|
-
packageName: 'typescript'
|
|
281
|
-
});
|
|
282
|
-
```
|
|
283
|
-
|
|
284
|
-
## 🤝 Contributing
|
|
285
|
-
|
|
286
|
-
We welcome contributions! Please see our [Contributing Guide](CONTRIBUTING.md) for details.
|
|
287
|
-
|
|
288
|
-
## 📄 License
|
|
289
|
-
|
|
290
|
-
This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.
|
|
291
|
-
|
|
292
|
-
## 📫 Contact & Support
|
|
293
|
-
|
|
294
|
-
- **GitHub**: [@nekzus](https://github.com/nekzus)
|
|
295
|
-
- **Email**: nekzus.dev@gmail.com
|
|
296
|
-
- **Support**: [PayPal](https://paypal.me/maseortega)
|
|
297
|
-
|
|
298
|
-
## ⭐️ Show Your Support
|
|
185
|
+
## License
|
|
299
186
|
|
|
300
|
-
|
|
301
|
-
- Giving it a star on GitHub
|
|
302
|
-
- Sharing it with others
|
|
303
|
-
- [Supporting the development](https://paypal.me/maseortega)
|
|
187
|
+
This MCP server is licensed under the MIT License. This means you are free to use, modify, and distribute the software, subject to the terms and conditions of the MIT License. For more details, please see the LICENSE file in the project repository.
|
|
304
188
|
|
|
305
189
|
---
|
|
306
190
|
|
|
307
|
-
Made by [nekzus](https://github.com/nekzus)
|
|
191
|
+
Made by [nekzus](https://github.com/nekzus) • [Support Development](https://paypal.me/maseortega)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nekzus/mcp-server",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.1",
|
|
4
4
|
"description": "MCP server for comprehensive NPM package analysis. Provides real-time insights into package quality, security, dependencies, and metrics. Built on the MCP SDK for seamless integration with Claude and Anthropic AI tools.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"types": "./dist/index.d.ts",
|