nexmemory-mcp
v1.1.0
Published
MCP server for NexMemory - Knowledge base and entity management
Downloads
8
Maintainers
Readme
NexMemory MCP Server
Model Context Protocol server for NexMemory A knowledge base and entity management system
Installation • Configuration • Usage • Features
📋 Table of Contents
- Overview
- Features
- Installation
- Configuration
- Environment Variables
- Available Tools
- Usage Examples
- Troubleshooting
- License
🎯 Overview
NexMemory MCP Server is a Model Context Protocol (MCP) server that provides seamless integration between NexMemory knowledge base and AI-powered development environments. It enables AI assistants to create, manage, search, and interact with entities in your knowledge base directly from your favorite code editor.
✨ Features
- 🚀 Zero-configuration deployment via
npx - 🔌 Universal compatibility with all major MCP clients
- 📝 Full CRUD operations for entities
- 🔍 Semantic search capabilities
- 🏷️ Tag-based filtering and organization
- ⚡ Real-time integration with AI assistants
- 🔐 Secure API key authentication
- 📊 Comprehensive entity management
📦 Installation
Quick Start (Recommended)
Run directly without installation:
npx nexmemory-mcpGlobal Installation
npm install -g nexmemory-mcpThen run:
nexmemory-mcp⚙️ Configuration
Environment Variables
Before configuring your MCP client, set up the following environment variables:
| Variable | Required | Default | Description |
|----------|----------|---------|-------------|
| NEXMEMORY_API_KEY | ✅ Yes | - | Your NexMemory API key |
| NEXMEMORY_API_URL | ❌ No | http://localhost:3000/api | API base URL |
| DEBUG | ❌ No | false | Enable debug logging (true/false) |
🔧 MCP Client Configurations
Cursor IDE
Cursor is an AI-powered code editor with built-in MCP support.
Configuration Steps
Locate configuration file:
- Project-specific:
.cursor/mcp.jsonin your project root - Global:
~/.cursor/mcp.json
- Project-specific:
Add configuration:
{
"mcpServers": {
"nexmemory": {
"command": "npx",
"args": [
"-y",
"nexmemory-mcp"
],
"env": {
"NEXMEMORY_API_KEY": "your-api-key-here",
"NEXMEMORY_API_URL": "http://localhost:3000/api",
"DEBUG": "false"
}
}
}
}- Restart Cursor to apply changes.
Claude Desktop
Claude Desktop provides comprehensive MCP support with deep integration capabilities.
Configuration Steps
Locate configuration file:
- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json - Windows:
%APPDATA%\Claude\claude_desktop_config.json - Linux:
~/.config/Claude/claude_desktop_config.json
- macOS:
Add configuration:
{
"mcpServers": {
"nexmemory": {
"command": "npx",
"args": [
"-y",
"nexmemory-mcp"
],
"env": {
"NEXMEMORY_API_KEY": "your-api-key-here",
"NEXMEMORY_API_URL": "http://localhost:3000/api"
}
}
}
}- Restart Claude Desktop to load the new configuration.
Windsurf
Windsurf is an AI-native IDE with built-in MCP support and AI Flow system.
Configuration Steps
Locate configuration file:
~/.codeium/windsurf/mcp_config.json
Add configuration:
{
"mcpServers": {
"nexmemory": {
"command": "npx",
"args": [
"-y",
"nexmemory-mcp"
],
"env": {
"NEXMEMORY_API_KEY": "your-api-key-here",
"NEXMEMORY_API_URL": "http://localhost:3000/api"
}
}
}
}- Restart Windsurf to apply changes.
Visual Studio Code (VS Code)
VS Code supports MCP through various extensions. Choose the one that best fits your workflow.
Option 1: Using VSCode MCP Bridge Extension
Install extension:
- Search for "VSCode MCP Bridge" in VS Code Extensions marketplace
- Install the extension by YuTengjing
Configure MCP server:
- Create
.vscode/mcp.jsonin your workspace:
- Create
{
"servers": {
"nexmemory": {
"command": "npx",
"args": ["-y", "nexmemory-mcp"],
"env": {
"NEXMEMORY_API_KEY": "your-api-key-here",
"NEXMEMORY_API_URL": "http://localhost:3000/api"
}
}
}
}- Enable Agent Mode:
- Open Command Palette (
Ctrl+Shift+P/Cmd+Shift+P) - Select
MCP: Add Server - Choose
nexmemoryfrom the list
- Open Command Palette (
Option 2: Using GitHub Copilot with MCP
Install Copilot MCP Search extension:
- Search for "Copilot MCP Search" in VS Code Extensions
- Install the extension
Configure via extension settings:
- Add
nexmemory-mcpas a new MCP server - Configure environment variables in extension settings
- Add
GitHub Copilot
GitHub Copilot integrates with MCP servers to enhance code suggestions.
Configuration Steps
Install Copilot MCP Search extension:
# Via VS Code Extensions marketplace # Search: "Copilot MCP Search"Configure MCP server:
- Open extension settings
- Add
nexmemory-mcpas a new server - Set environment variables:
NEXMEMORY_API_KEYNEXMEMORY_API_URL
Restart VS Code to apply changes.
Zed
Zed is a high-performance code editor with built-in MCP support.
Configuration Steps
Open settings:
- Press
cmd+,(macOS) orCtrl+,(Windows/Linux) - Or use Command Palette:
zed: open settings
- Press
Add configuration:
{
"mcpServers": {
"nexmemory": {
"command": "npx",
"args": ["-y", "nexmemory-mcp"],
"env": {
"NEXMEMORY_API_KEY": "your-api-key-here",
"NEXMEMORY_API_URL": "http://localhost:3000/api"
}
}
}
}- Restart Zed to apply changes.
Continue.dev
Continue is an open-source autopilot for VS Code and JetBrains IDEs.
Configuration Steps
Install Continue extension:
- VS Code: Search "Continue" in Extensions
- JetBrains: Install from JetBrains Marketplace
Configure MCP server:
- Open Continue settings
- Navigate to MCP servers section
- Add configuration:
{
"mcpServers": {
"nexmemory": {
"command": "npx",
"args": ["-y", "nexmemory-mcp"],
"env": {
"NEXMEMORY_API_KEY": "your-api-key-here",
"NEXMEMORY_API_URL": "http://localhost:3000/api"
}
}
}
}- Restart your IDE to apply changes.
Cline
Cline is a VS Code extension that integrates AI models with MCP support.
Configuration Steps
Install Cline extension:
- Search "Cline" in VS Code Extensions marketplace
- Install the extension
Configure MCP server:
- Create
.cline/mcp.jsonin your project root:
- Create
{
"mcpServers": {
"nexmemory": {
"command": "npx",
"args": ["-y", "nexmemory-mcp"],
"env": {
"NEXMEMORY_API_KEY": "your-api-key-here",
"NEXMEMORY_API_URL": "http://localhost:3000/api"
}
}
}
}- Restart VS Code to apply changes.
Roo Code
Roo Code is a VS Code extension for AI-powered code assistance.
Configuration Steps
Install Roo Code extension:
- Search "Roo Code" in VS Code Extensions marketplace
Configure MCP server:
- Open Roo Code settings
- Add MCP server configuration with environment variables
- Use the same configuration format as Cline
Zencoder
Zencoder is a coding agent available for VS Code and JetBrains IDEs.
Configuration Steps
Install Zencoder:
- VS Code: Search "Zencoder" in Extensions
- JetBrains: Install from JetBrains Marketplace
Configure MCP server:
- Open Zencoder settings
- Navigate to MCP configuration
- Add
nexmemory-mcpwith environment variables
Sourcegraph Amp
Sourcegraph Amp supports MCP across VS Code, Cursor, and Windsurf.
Configuration Steps
Install Sourcegraph Amp:
- Install the appropriate extension for your editor
Configure MCP server:
- Open Sourcegraph settings
- Add MCP server configuration
- Set environment variables for NexMemory API
🔑 Environment Variables
Configure these environment variables in your MCP client configuration:
# Required
NEXMEMORY_API_KEY=your-api-key-here
# Optional (with defaults)
NEXMEMORY_API_URL=http://localhost:3000/api
DEBUG=false🛠️ Available Tools
The NexMemory MCP server provides the following tools:
create_entity
Create a new entity in the knowledge base.
Parameters:
name(required): Entity namedescription(optional): Detailed descriptiontags(required): Array of tag namesproperties(optional): Custom key-value pairs
get_entity
Retrieve an entity by its ID.
Parameters:
id(required): UUID of the entity
update_entity
Update an existing entity.
Parameters:
id(required): UUID of the entityname(optional): Updated namedescription(optional): Updated descriptiontags(optional): Updated tags arrayproperties(optional): Updated properties object
delete_entity
Delete an entity from the knowledge base.
Parameters:
id(required): UUID of the entity
list_entities
List entities with optional filtering and pagination.
Parameters:
limit(optional, default: 50): Maximum number of entitiesoffset(optional, default: 0): Number of entities to skiptags(optional): Filter by tags (all must match)
search_entities
Perform semantic search on the knowledge base.
Parameters:
query(required): Natural language search querylimit(optional, default: 10): Maximum number of results
💡 Usage Examples
Example 1: Create an Entity
{
"name": "Project Alpha",
"description": "A revolutionary AI-powered project management system",
"tags": ["project", "ai", "management"],
"properties": {
"status": "active",
"priority": "high"
}
}Example 2: Search Entities
{
"query": "Find all active projects related to AI",
"limit": 20
}Example 3: Update Entity Tags
{
"id": "entity-uuid-here",
"tags": ["project", "ai", "management", "active"]
}🐛 Troubleshooting
Common Issues
Server Not Starting
- Issue: MCP server fails to start
- Solution:
- Verify Node.js version:
node --version(requires ≥14.0.0) - Check API key is set correctly
- Verify NexMemory API server is running
- Verify Node.js version:
Connection Errors
- Issue: Cannot connect to NexMemory API
- Solution:
- Verify
NEXMEMORY_API_URLis correct - Check API server is accessible
- Ensure API key is valid
- Verify
Tools Not Appearing
- Issue: Tools don't show up in client
- Solution:
- Restart your MCP client application
- Check configuration file syntax (valid JSON)
- Enable debug mode:
DEBUG=trueto see logs
Debug Mode
Enable debug logging to troubleshoot issues:
{
"env": {
"DEBUG": "true"
}
}Debug logs will appear in your terminal/console.
📚 Additional Resources
📄 License
This project is licensed under the MIT License.
Made with ❤️ for the AI development community
