loading…
Search for a command to run...
loading…
A comprehensive Model Context Protocol toolkit that transforms AI assistants into autonomous agents capable of executing real-world tasks across filesystems, we
A comprehensive Model Context Protocol toolkit that transforms AI assistants into autonomous agents capable of executing real-world tasks across filesystems, web requests, Git workflows, databases, system commands, and AI integrations.
A Comprehensive Model Context Protocol Toolkit for AI Assistants
License: MIT Node Version TypeScript MCP
Transform any AI assistant into an autonomous agent capable of executing real-world tasks.
Nexus-MCP is a powerful Model Context Protocol (MCP) server built with TypeScript/Node.js that provides AI models with universal tools for:
Current Status: 49 tools production-ready, 8 utilities tools code-implemented (pending config integration)
npm install -g nexus-ai-tools
# Copy example environment file
cp .env.example .env
# Edit with your settings
nano .env
# Build the project
npm run build
# Run the MCP server (production)
npm start
# or
npm run start:mcp
# Run with CLI
npm run mcp
# Run in development mode
npm run dev
Add to your Claude Desktop config:
{
"mcpServers": {
"nexus-mcp": {
"command": "node",
"args": ["/path/to/nexus-mcp/dist/index.js"]
}
}
}
Create a .env file:
NEXUS_LOG_LEVEL=debug
DB_PASSWORD=secret123
ANTHROPIC_API_KEY=sk-ant-...
Use in config.yaml:
server:
log_level: "${NEXUS_LOG_LEVEL:-info}"
database:
postgresql:
password: "${DB_PASSWORD}"
ai:
anthropic:
api_key: "${ANTHROPIC_API_KEY}"
Validate required variables before starting:
import { validateEnvironment, loadConfig } from './config.js';
validateEnvironment(['ANTHROPIC_API_KEY', 'DB_PASSWORD']);
const config = loadConfig();
import { ContextualLogger } from './logger.js';
import path from 'path';
const workDir = path.join(process.cwd(), 'logs');
const logger = ContextualLogger.create(workDir, 'workflow-001');
logger.info('workflow.started', { step: 1 });
logger.info('processing.data', { items: 100 });
logger.info('workflow.completed', { success: true });
logger.close();
See Configuration Improvements Guide for complete details.
nexus_read_file - Read files with encoding supportnexus_write_file - Write/create filesnexus_list_directory - List directory contentsnexus_search_files - Search files by patternnexus_search_content - Search content within filesnexus_watch_directory - Monitor directory changesnexus_http_get - HTTP GET requestsnexus_http_post - HTTP POST requestsnexus_fetch_url - Fetch and parse web contentnexus_parse_html - Parse HTML with Cheerionexus_call_api - Generic API callsnexus_git_clone - Clone repositoriesnexus_git_commit - Create commitsnexus_git_push - Push to remotenexus_git_pr_create - Create pull requestsnexus_db_query - Execute SQL queriesnexus_db_list_tables - List database tablesnexus_db_describe_table - Describe table schemanexus_exec_command - Execute shell commandsnexus_system_info - Get system informationnexus_process_list - List running processesnexus_service_start/stop - Manage servicesnexus_llm_chat - Chat with LLMs (Anthropic, OpenAI)nexus_embedding_create - Create text embeddingsnexus_text_summarize - Summarize textnexus_code_generate - Generate codenexus_json_parse/stringify - JSON manipulationnexus_yaml_parse/stringify - YAML manipulationnexus_zip_create/extract - ZIP compressionnexus_encrypt/decrypt - Encryption/decryption┌─────────────────────────────────────────┐
│ Claude / LLM Client │
└──────────────┬──────────────────────────┘
│ MCP Protocol (stdio)
▼
┌─────────────────────────────────────────┐
│ Nexus-MCP Server │
│ ┌───────────────────────────────────┐ │
│ │ MCP Server Core │ │
│ └───────────────────────────────────┘ │
│ ┌───────┴───────┐ │
│ │ │ │
│ ┌────▼────┐ ┌────▼────┐ │
│ │ Filesys │ │ HTTP │ │
│ └─────────┘ └─────────┘ │
│ ┌─────────┐ ┌─────────┐ │
│ │ Git │ │ Database│ │
│ └─────────┘ └─────────┘ │
│ ┌─────────┐ ┌─────────┐ │
│ │ System │ │ AI │ │
│ └─────────┘ └─────────┘ │
└─────────────────────────────────────────┘
For detailed architecture, see docs/architecture.md
Nexus-MCP is built with architectural excellence in mind, designed for production use and community adoption. We follow strict principles:
See Architectural Principles for complete details.
Nexus-MCP includes advanced configuration and logging features inspired by production systems:
Use ${VAR_NAME} syntax in YAML files to substitute environment variables:
server:
log_level: "${NEXUS_LOG_LEVEL:-info}" # Uses env var, defaults to "info"
database:
postgresql:
password: "${DB_PASSWORD}" # Required - warns if not set
Benefits:
Workflow-specific logging with separate log files per context:
import { ContextualLogger } from './logger.js';
const logger = ContextualLogger.create(workDir, 'migration-123');
logger.info('workflow.started', { step: 1 });
logger.info('extract.completed', { schemaPath: '/path/to/schema.json' });
logger.close();
Benefits:
Documentation: See Configuration Improvements Guide for complete details.
# Clone repository
git clone https://github.com/your-org/Nexus-MCP.git
cd Nexus-MCP
# Install dependencies
npm install
# Run in development mode
npm run dev
# Run tests
npm test
# Build for production
npm run build
# Lint code
npm run lint
See ROADMAP.md for detailed progress.
Nexus-MCP includes integration with 4 major AI providers:
# Configure API keys
export OPENAI_API_KEY="your-key"
export GEMINI_API_KEY="your-key"
export ANTHROPIC_API_KEY="your-key"
export OLLAMA_HOST="http://localhost:11434"
# Run the interactive AI CLI
node examples/ai-interactive-cli.js
# Or run the enhanced demo
node examples/ai-enhanced-demo.js
See AI Tools Guide for detailed documentation.
Nexus-MCP is an MCP (Model Context Protocol) server that allows AI assistants like Claude Code to use its 57 tools.
npm start
See MCP Configuration Guide for detailed setup instructions.
Contributions are welcome! Please read our contributing guidelines before submitting PRs.
git checkout -b feature/amazing-feature)git commit -m 'Add amazing feature')git push origin feature/amazing-feature)This project is licensed under the MIT License - see the LICENSE file for details.
Built with ❤️ by the Nexus Team
Добавь это в claude_desktop_config.json и перезапусти Claude Desktop.
{
"mcpServers": {
"nexus-mcp": {
"command": "npx",
"args": []
}
}
}