# MCP Server Installation and Testing Results
**Date**: 2026-01-05
**Purpose**: Install and test MCP servers for agentic tasks (top-priority and additional recommended servers)
## Installation Status
### ✅ Successfully Installed
1. **Code Index MCP Server** (`@hayhandsome/code-index-mcp`)
- Status: ✅ Installed globally via npm
- Version: 0.1.3
- Note: Alternative package to `@code-index/mcp-server` (which doesn't exist on npm)
2. **Memory Bank MCP Server** (`@aakarsh-sasi/memory-bank-mcp`)
- Status: ✅ Installed globally via npm
- Version: Latest
- Note: Has path resolution bug (see Issues below)
3. **Semgrep MCP Server**
- Status: ✅ Already configured and working
- Capabilities: Security scanning, code analysis
- Test Result: Successfully scanned Java file with no issues found
### ❌ Failed to Install
1. **Spring Boot Actuator MCP** (`@modelcontextprotocol/server-http`)
- Status: ❌ Package not found on npm
- Alternative: Would need custom implementation or different package
- Note: Requires running Spring Boot application to be useful
## Additional Servers Installation
### ✅ Successfully Installed (Additional Servers)
1. **Maven Dependencies MCP Server** (`mcp-maven-deps`)
- Status: ✅ Installed globally via npm
- Version: 0.1.7
- Purpose: Check Maven dependency versions
- Alternative to: `@maven-tools/mcp-server` (not found on npm)
- Status: ⏳ Needs Cursor configuration
2. **Docker MCP Server** (`docker-mcp-server`)
- Status: ✅ Installed globally via npm
- Version: 2.1.1
- Purpose: Docker container and image management
- Alternative to: `@modelcontextprotocol/server-docker` (not found on npm)
- Status: ⏳ Needs Cursor configuration
3. **Architect MCP Server** (`@agiflowai/architect-mcp`)
- Status: ✅ Installed globally via npm
- Version: 1.0.15
- Purpose: Software architecture design and planning
- Alternative to: `@squirrelogic/mcp-architect` (not found on npm)
- Status: ⏳ Needs Cursor configuration
4. **PostgreSQL MCP Server** (`mcp-server-postgresql`)
- Status: ✅ Installed globally via npm
- Version: 3.0.0
- Purpose: PostgreSQL database management
- Alternative to: `@henkdz/postgresql-mcp-server` (not found on npm)
- Status: ⏳ Needs Cursor configuration
### ❌ Not Found on npm (Additional Servers)
The following packages listed in MCP_SETUP.md do not exist on npm:
1. **Maven Tools MCP Server** (`@maven-tools/mcp-server`) → Alternative: `mcp-maven-deps` ✅
2. **Spring Initializr MCP Server** (`@antigravity/spring-initializr-mcp`) → ❌ No alternative found
3. **UML-MCP Server** (`@antoinebou12/uml-mcp`) → May need to build from source
4. **NPM Plus MCP Server** (`@antigravity/npm-plus-mcp`) → ❌ No alternative found
5. **Docker MCP Server** (`@modelcontextprotocol/server-docker`) → Alternative: `docker-mcp-server` ✅
6. **Architect MCP Server** (`@squirrelogic/mcp-architect`) → Alternative: `@agiflowai/architect-mcp` ✅
7. **PostgreSQL MCP Server** (`@henkdz/postgresql-mcp-server`) → Alternative: `mcp-server-postgresql` ✅
## Testing Results
### Semgrep MCP ✅ Working
**Test**: Security scan of `ProjectNameApplication.java`
**Result**:
- Successfully scanned Java file
- No security vulnerabilities found
- Supports 50+ languages including Java, TypeScript, Python, etc.
**Usefulness**: ⭐⭐⭐⭐⭐
- Excellent for security scanning
- Can detect vulnerabilities, code quality issues
- Works immediately without configuration
**Example Usage**:
```javascript
// Scanned ProjectNameApplication.java
// Result: No security issues found
// Supports: auto, p/security, p/java, etc.
```
### Memory Bank MCP ⚠️ Has Issues
**Test**: Initialize and write context
**Result**:
- ❌ Path resolution bug prevents initialization
- Error: "Path contains invalid characters" when concatenating paths
- Issue: Server incorrectly combines workspace path with user home path
**Usefulness**: ⭐⭐⭐ (if fixed)
- Would be very useful for maintaining context across sessions
- Currently blocked by initialization bug
**Workaround**:
- Directory created manually (`.memory-bank/`)
- But MCP server still cannot initialize due to path bug
- May need to report issue to maintainer or use alternative
### Code Index MCP ⏳ Needs Configuration
**Status**: Installed but not yet configured in Cursor
**Expected Usefulness**: ⭐⭐⭐⭐⭐
- Should provide semantic code search
- Reduces token usage by 60-80% for code queries
- 10x faster code search
**Configuration Required**:
```json
{
"mcpServers": {
"code-index": {
"command": "npx",
"args": ["-y", "@hayhandsome/code-index-mcp"],
"env": {
"CODE_INDEX_PATH": "./src"
}
}
}
}
```
## Complete Configuration Template
To complete the setup, add this complete configuration to Cursor Settings → Features → MCP:
```json
{
"mcpServers": {
"code-index": {
"command": "npx",
"args": ["-y", "@hayhandsome/code-index-mcp"],
"env": {
"CODE_INDEX_PATH": "./src"
}
},
"memory-bank": {
"command": "npx",
"args": [
"-y",
"@aakarsh-sasi/memory-bank-mcp",
"--mode",
"code",
"--path",
".",
"--folder",
".memory-bank"
]
},
"maven-deps": {
"command": "npx",
"args": ["-y", "mcp-maven-deps"]
},
"docker": {
"command": "npx",
"args": ["-y", "docker-mcp-server"]
},
"architect": {
"command": "npx",
"args": ["-y", "@agiflowai/architect-mcp"]
},
"postgresql": {
"command": "npx",
"args": ["-y", "mcp-server-postgresql"],
"env": {
"POSTGRES_HOST": "localhost",
"POSTGRES_PORT": "5432",
"POSTGRES_DB": "your_database",
"POSTGRES_USER": "your_user",
"POSTGRES_PASSWORD": "your_password"
}
}
}
}
```
**Note**: After adding configuration, restart Cursor completely.
## Recommendations
### Immediate Actions
1. **Configure Code Index MCP** in Cursor settings
- High value: 60-80% token savings
- Fast semantic search
- Easy to set up
2. **Report Memory Bank Bug**
- Path resolution issue needs fixing
- Consider using alternative: `@metorial/mcp-index`
3. **Use Semgrep MCP** for security scanning
- Already working
- Great for code quality checks
- Can be integrated into CI/CD
### Future Considerations
1. **Spring Boot Actuator MCP**
- Requires custom implementation
- Only useful if Spring Boot app is running
- Can use generic HTTP MCP server as base
2. **Additional High-Value Servers** (from MCP_SETUP.md):
- Develocity MCP (Gradle build insights)
- Spring Initializr MCP (project generation)
- UML-MCP (architecture diagrams)
## Trivial Agentic Task Results
### Task 1: Security Scan ✅
- **Tool**: Semgrep MCP
- **Task**: Scan Java file for security issues
- **Result**: Success - No issues found
- **Time**: < 1 second
- **Usefulness**: High - Immediate security feedback
### Task 2: Context Storage ⚠️
- **Tool**: Memory Bank MCP
- **Task**: Store project context for future sessions
- **Result**: Failed - Path resolution bug
- **Usefulness**: Would be high if working
### Task 3: Code Search ⏳
- **Tool**: Code Index MCP
- **Task**: Semantic search of codebase
- **Result**: Not yet configured
- **Expected Usefulness**: Very High
## Installation Summary Statistics
- **Total Servers Attempted**: 11
- **Successfully Installed**: 7 (64%)
- **Working (Tested)**: 1 (Semgrep)
- **Needs Configuration**: 6
- **Has Issues**: 1 (Memory Bank)
- **Not Found on npm**: 4
## Summary
**Working Servers**: 1/7 (Semgrep)
**Partially Working**: 1/7 (Memory Bank - installed but buggy)
**Needs Configuration**: 5/7 (Code Index, Maven Dependencies, Docker, Architect, PostgreSQL)
**Overall Assessment**:
- Semgrep MCP is immediately useful for security scanning
- Code Index MCP should be configured next (high value - 60-80% token savings)
- Memory Bank MCP needs bug fix or alternative
- Additional servers installed but need configuration and testing
**Package Availability Issues**:
Many packages documented in MCP_SETUP.md are not available on npm. This suggests:
1. Documentation may be outdated - Package names may have changed
2. Packages may be private - Some may require special access
3. Packages may need to be built from source - GitHub repositories may exist
4. Alternative packages exist - We found working alternatives for most
**Next Steps**:
1. Configure Code Index MCP in Cursor settings (highest priority)
2. Test Code Index with semantic search
3. Report Memory Bank path bug or find alternative
4. Configure and test additional servers (Maven Dependencies, Docker, Architect, PostgreSQL)
5. Update MCP_SETUP.md with correct package names
6. Consider building from source for UML-MCP and Spring Initializr if needed