neuroverse
About
Multilingual intelligence + memory + safety + voice layer for autonomous AI agents
Details
- Author
- joshua400
- Categories
- Communication, AI, Other
Jump to
Setup
Install neuroverse in your MCP client (Claude Desktop, Cursor, Windsurf, and others).
Repository: https://github.com/joshua400/neuroverse
Follow the installation instructions in the repository README, then restart your MCP client.
๐ฆInstall from npm|๐GitHub Repository
Your AI agent only speaks English. NeuroVerse fixes that.
Your AI agent forgets everything. NeuroVerse remembers.
Your AI agent might do something dangerous. NeuroVerse stops that.
Your AI agent is locked to one model. NeuroVerse routes to the best one.
Multilingual intelligence + memory + safety + voice layer for autonomous AI agents.
- OpenRouter Reasoning: Integrated thestepfun/step-3.5-flash:freemodel for high-performance analytical tasks. Use the newneuroverse_reasontool for deep thinking.
- Reasoning Tokens: Real-time tracking of reasoning tokens for every request.
- Voice Layer (v2.0): Built-in support forWhisper STTandCoqui TTS.
Every time you start a new chat with Cursor, VS Code Copilot, or any MCP-compatible AI agent, it starts from zero โ no memory, no safety, no understanding of your language. NeuroVerse is an MCP server that gives your agents:
โก NeuroVerse is a modular intelligence layer โ not a monolith. Plug in what you need. Ignore what you don't.
- Quick Start
- Why NeuroVerse?
- How It Works
- Multilingual Intelligence (Vani)
- Intent Extraction (Bodhi)
- Tiered Memory (Smriti)
- Safety Layer (Kavach)
- Multi-Model Router (Marga)
- Agent-to-Agent (Setu)
- MCP Tools
- REST API
- Configuration
- Testing
- Architecture
- Roadmap
- Contributing
Option A: npm (recommended) โ use anywhere
git clone https://github.com/joshua400/neuroverse.git cd neuroverse python -m pip install -e ".[dev]"
๐กTip:If you installed via npm, the path isnode_modules/neuroverse/dist/index.js. If from source, use the absolute path to your cloned directory.
NeuroVerse is a standard MCP server (stdio). Add it to your host's config:
Cursor / VS Code Copilot / Claude Desktop (npm)
{ "mcpServers": { "neuroverse": { "command": "npx", "args": ["neuroverse"] } } }
{ "mcpServers": { "neuroverse": { "command": "python", "args": ["mcp/server.py"], "cwd": "/path/to/neuroverse" } } }
Add this to your agent's rules file (.md,.cursorrules, system prompt, etc.):
## NeuroVerse Integration - Use neuroverse_process to handle any user request โ it auto-detects language, extracts intent, checks safety, and executes. - Use neuroverse_reason for complex tasks requiring analytical reasoning (powered by OpenRouter). - Use neuroverse_store / neuroverse_recall for persistent context across sessions. - Use neuroverse_execute for any potentially dangerous action โ it will block destructive operations.
That's it. Two commands your agent needs to know:
Next session, your agent picks up exactly where it left off โ like it never forgot.
- npm edition:Node.js 18+ (zero database deps โ uses JSON files)
- Python edition:Python 3.10+ + PostgreSQL (for persistent memory)
NeuroVerse's safety layer runs atzero token costโ pure regex and rule matching, no LLM calls wasted:
Over 100 tool calls per session, that's50,000โ200,000 tokens savedcompared to LLM-based safety.
User Input (any language) โ โโโโโโดโโโโโ โ Vani โ โ Language detection + keyword normalisation โ (เคญเคพเคทเคพ) โ Tamil/Hindi/Telugu โ normalised internal format โโโโโโฌโโโโโ โ โโโโโโดโโโโโ โ Bodhi โ โ LLM intent extraction + rule-based fallback โ (เคฌเฅเคงเคฟ) โ Returns structured JSON with confidence โโโโโโฌโโโโโ โ โโโโโโดโโโโโ โ Kavach โ โ 3-layer safety: blocklist โ risk โ LLM judge โ (เคเคตเค) โ Blocks dangerous actions at zero token cost โโโโโโฌโโโโโ โ โโโโโโดโโโโโ โ Marga โ โ Routes to best model (OpenAI/Anthropic/Sarvam/Ollama) โ (เคฎเคพเคฐเฅเค) โ Based on task type: multilingual/reasoning/local โโโโโโฌโโโโโ โ โโโโโโดโโโโโ โ Smriti โ โ Stores/recalls from tiered memory โ (เคธเฅเคฎเฅเคคเคฟ) โ Short-term + Episodic + Semantic (PostgreSQL) โโโโโโฌโโโโโ โ Tool Execution + Response
The Problem:Every MCP server speaks only English. 70% of India code-switches daily.
"anna indha file ah csv convert pannu" โ "anna this file ah csv convert do" โ keyword normalisation (not full translation) โ Intent: convert_format { output_format: "csv" }
Input โ Language Detect (langdetect) โ Code-Switch Split โ Keyword Normalise โ Output
Key insight:Don't fully translate. Only normalise domain-critical keywords. The rest stays untouched โ preserving context, tone, and nuance.
{ "languages": ["ta", "en"], "confidence": 0.92, "is_code_switched": true, "original_text": "anna indha file ah csv convert pannu", "normalized_text": "anna this file ah csv convert do" }
LLM-first. Rule-based fallback. Never fails.
LLM succeeds (confidence โฅ 0.5)? โโ Yes โ use LLM result โโ No โ rule-based parser (deterministic)
# Prompt to LLM: "Extract structured intent from the following input. Return ONLY valid JSON: {intent, parameters, confidence}"
{ "intent": "convert_format", "parameters": { "input_format": "json", "output_format": "csv" }, "confidence": 0.87, "source": "rule" }
The key difference:the code decidesโ not the LLM. If the LLM fails, hallucinates, or returns garbage, the rule engine takes over. Deterministic. Reliable.
The Problem:Raw logs are useless. Storing everything wastes resources. No relevance scoring.
NeuroVerse's approach:Score โ Filter โ Compress โ Store.
if importance_score >= 0.4: persist_to_database() # worth remembering else: skip() # noise
Only important memories survive. No bloat. No irrelevant recall.
โ Bad: "The user asked about sales data three times in the last hour and seemed frustrated..." โ
Good: { "intent": "sales_query", "frequency": 3, "sentiment": "frustrated" }
Structured JSON payloads, NOT raw text dumps. Compressed. Indexable. Queryable.
CREATE TABLE memory_records ( id TEXT PRIMARY KEY, user_id TEXT NOT NULL, tier TEXT NOT NULL, -- short_term | episodic | semantic intent TEXT NOT NULL, language TEXT DEFAULT 'en', data JSONB DEFAULT '{}', -- compressed structured payload importance REAL DEFAULT 0.5, created_at TIMESTAMPTZ DEFAULT NOW(), updated_at TIMESTAMPTZ DEFAULT NOW() ); -- Indexed: user_id, intent, tier
"The shield that never sleeps."
Agent calls tool โ MCP Server receives request โ โโโโโโโโโโโโโดโโโโโโโโโโโโ โ Layer 1: Blocklist โ โ regex + keywords, < 0.1ms โโโโโโโโโโโโโฌโโโโโโโโโโโโ โ pass โโโโโโโโโโโโโดโโโโโโโโโโโโ โ Layer 2: Risk Score โ โ intent โ risk classification โโโโโโโโโโโโโฌโโโโโโโโโโโโ โ pass โโโโโโโโโโโโโดโโโโโโโโโโโโ โ Layer 3: LLM Judge โ โ optional model-based check โโโโโโโโโโโโโฌโโโโโโโโโโโโ โ pass Execute handler
Layer 1 โ Rule-Based Blocklist (Zero Cost)
Runs inside the MCP server. Pure regex. No network. No tokens.
delete_all_data, drop_database, drop_table, system_shutdown, format_disk, rm -rf, truncate, shutdown, reboot, erase_all, destroy
DROP (DATABASE|TABLE|SCHEMA) DELETE FROM TRUNCATE TABLE FORMAT [drive]: rm (-rf|--force)
If Layers 1โ2 pass, optionally ask an LLM:"Is this safe?"
// LLM returns: { "safe": false, "reason": "This action would delete all user data." }
{ "allowed": false, "risk_level": "critical", "reason": "Blocked keyword detected: 'drop_database'", "blocked_by": "rule" }
Most AI safety: Agent โ "rm -rf /" โ Safety LLM โ 2,000 tokens burned NeuroVerse: Agent โ "rm -rf /" โ regex match โ BLOCKED (0 tokens, < 1ms)
# .env SAFETY_STRICT_MODE=true # Also blocks MEDIUM risk (unknown/send) SAFETY_STRICT_MODE=false # Only blocks HIGH and CRITICAL
The Problem:Vendor lock-in. One model for everything. Overpaying.
NeuroVerse's approach:Route each task to the best model. Automatically.
def route_task(task): if task.type == "multilingual": return sarvam_model # Best for Indian languages elif task.type == "reasoning": return claude_or_openai # Best for complex analysis elif task.type == "local": return ollama # Free, on-device, private else: return best_available # Fallback chain
If your preferred provider is down or unconfigured:
OpenRouter โ Anthropic โ OpenAI โ Sarvam โ Ollama (local, always available)
register_agent({ "agent_name": "report_agent", "endpoint": "http://localhost:8001/generate", "capabilities": ["generate_report", "sales_analysis"] })
{ "target_agent": "report_agent", "task": "generate_sales_report", "payload": { "quarter": "Q1", "year": 2026 } }
{ "success": false, "error": "Agent unreachable: ConnectError", "fallback": true }
The caller can fall back to local execution. No hard failures.
NeuroVerse exposes6 toolsvia the Model Context Protocol:
โโ Session 1 (Agent Alpha, 2pm) โโโโโโโโโโโโโโโโโโโโโโโโโโโ india_mcp_process_multilingual_input({ text: "anna indha sales data ah csv convert pannu", user_id: "alpha", execute: true }) โ Language: Tamil+English (code-switched) โ Intent: convert_format { output_format: "csv" } โ Safety: โ
allowed (LOW risk) โ Execution: โ
success india_mcp_store_memory({ user_id: "alpha", intent: "convert_format", tier: "episodic", data: { "file": "sales_q1.json", "output": "csv" }, importance_score: 0.8 }) โโ Session 2 (Agent Beta, next day) โโโโโโโโโโโโโโโโโโโโโโโ india_mcp_recall_memory({ user_id: "alpha", intent: "convert_format", limit: 5 }) โ "Agent Alpha converted sales_q1.json to CSV yesterday" โ Beta picks up exactly where Alpha left off
NeuroVerse also ships with a FastAPI REST layer โ for non-MCP clients:
python app/main.py # โ http://localhost:8000/docs (Swagger UI)
All settings via environment variables (.env):
# Database (PostgreSQL required for persistent memory) DATABASE_URL=postgresql+asyncpg://user:password@localhost:5432/neuroverse # AI Model API Keys (configure the ones you have) OPENAI_API_KEY=sk-... ANTHROPIC_API_KEY=sk-ant-... SARVAM_API_KEY=... # Ollama (local, free) OLLAMA_BASE_URL=http://localhost:11434 # Safety SAFETY_STRICT_MODE=true # Block MEDIUM risk actions too # MCP Transport MCP_TRANSPORT=stdio # or streamable_http MCP_PORT=8000
tests/test_intent.py โ 10 passed (rule-based + async + mock LLM + fallback) tests/test_language.py โ 10 passed (keyword normalisation + detection + code-switch) tests/test_pipeline.py โ 8 passed (full e2e: English, Tamil, Hindi, dangerous, edges) tests/test_safety.py โ 12 passed (blocklist, regex, risk classification, pipeline) ============================= 40 passed in 0.87s ==============================
npm/ โโโ src/ โ โโโ core/ โ โ โโโ language.ts # Vani โ Language detection (zero deps) โ โ โโโ intent.ts # Bodhi โ Intent extraction (LLM + fallback) โ โ โโโ memory.ts # Smriti โ Tiered memory (JSON files) โ โ โโโ safety.ts # Kavach โ 3-layer safety engine โ โ โโโ router.ts # Marga โ Multi-model AI router โ โโโ services/ โ โ โโโ executor.ts # Tool registry + retry engine โ โ โโโ agent-router.ts # Setu โ Agent-to-Agent routing โ โโโ types.ts # TypeScript interfaces & enums โ โโโ constants.ts # Shared constants โ โโโ index.ts # MCP Server โ 6 tools (McpServer + Zod) โโโ package.json # npm publish config โโโ tsconfig.json โโโ LICENSE # Apache-2.0
app/ โโโ core/ โ โโโ language.py # Vani โ Language detection (langdetect) โ โโโ intent.py # Bodhi โ Intent extraction (LLM + fallback) โ โโโ memory.py # Smriti โ Tiered memory (PostgreSQL) โ โโโ safety.py # Kavach โ 3-layer safety engine โ โโโ router.py # Marga โ Multi-model AI router โโโ models/schemas.py # 12 Pydantic v2 models โโโ services/ โ โโโ executor.py # Tool registry + retry engine โ โโโ agent_router.py # Setu โ Agent-to-Agent routing โโโ config.py # Settings from environment โโโ main.py # FastAPI REST entry point mcp/server.py # MCP Server (FastMCP) โ 6 tools tests/ # 40 tests (pytest)
Contributions are welcome! Here's how to get started:
- Fork the repo
- Create a feature branch (git checkout -b feature/amazing-feature)
- Commit your changes (git commit -m 'feat: add amazing feature')
- Push to the branch (git push origin feature/amazing-feature)
- Open a Pull Request
# npm edition git clone https://github.com/joshua400/neuroverse.git cd neuroverse/npm npm install npm run build # Python edition cd neuroverse python -m pip install -e ".[dev]" python -m pytest tests/ -v # All 40 should pass
"I built NeuroVerse because it broke my heart watching agents forget everything every session โ and not understand a word of Tamil."*
Joshua Ragiland M
โ๏ธjoshuaragiland@gmail.com
๐Portfolio Website
Built with ๐ง by Joshua โ for the agents of tomorrow.
Upfirst is an AI phone receptionist for small businesses. Review call transcripts, then fix the greeting, knowledge, and transfer rules from your AI client.
An MCP server client for the Agent-to-Agent (A2A) protocol, enabling LLMs to interact with A2A agents.
Provides audio input and output capabilities for AI assistants.
An advanced AI companion with emotional intelligence and vector database integration.
Visual coordination protocol for AI agents โ 22 MCP tools for glyph-based communication with 50-70% token savings, shared memory, governance, and on-chain attestation.
Sign in to leave a review
Use Google, GitHub, or an email account so ratings stay tied to real people.
No reviews posted yet.





