Nouva MCP Server

Nouva MCP Server

Centralized repository for modular, portable skills and memory, enabling AI agents and IDEs to access personalized tools and memory via stdio or SSE transport.

Category
访问服务器

README

Nouva MCP Server 🌌🐱

Nouva MCP (Model Context Protocol) Server is a centralized repository for modular, portable, and detachable Personalized Skills and Memory. It is written in Python (FastMCP) and runs on Gading's agent-host. You can run it locally or in a containerized environment.

The server supports dual transport:

  1. Stdio Transport: Used natively by OpenClaw on the local machine.
  2. SSE (Server-Sent Events) Transport: Runs an HTTP server on port 8000 to be accessed by external clients like Cursor, Windsurf, or Hermes.

Architecture Overview

[AI Agent / IDE Client]
  (OpenClaw, Cursor, Zed, Claude Code)
        │
        ▼ (via stdio / SSE)
┌────────────────────────────────────────────────────────┐
│                    Nouva MCP Server                    │
│  ┌──────────────────────────────────────────────────┐  │
│  │                  Skills Engine                   │  │ (dynamic loader under src/skills/)
│  │  ┌────────────────────────────────────────────┐  │  │
│  │  │               Memory Engine                │  │  │ (pgvector recall + SQL analytics)
│  │  └────────────────────────────────────────────┘  │  │
│  │  ┌────────────────────────────────────────────┐  │  │
│  │  │              Persona Engine                │  │  │ (startup persona bootstrap from markdown folders)
│  │  └────────────────────────────────────────────┘  │  │
│  │  ┌────────────────────────────────────────────┐  │  │
│  │  │              MCP Management                │  │  │ (scaffolding & creating new skills)
│  │  └────────────────────────────────────────────┘  │  │
│  │  ┌────────────────────────────────────────────┐  │  │
│  │  │               Other Skills                 │  │  │ (custom tools, morning-report, etc.)
│  │  └────────────────────────────────────────────┘  │  │
│  └──────────────────────────────────────────────────┘  │
└────────────────────────────────────────────────────────┘

Skill migration rules (portable by design)

  • Python-based: tools should be implemented as native Python inside this repository.
  • Self-contained: avoid wrappers that call scripts outside the repo.
  • Secrets: keep secrets out of git and out of the repo by default. Prefer environment variables or host-mounted secret files.

Directory Structure

nouva-mcp-server/
├── src/
│   ├── main.py                # Entrypoint & Dynamic Skill Loader
│   ├── skills/                # Modular skill directories (native Python)
│   │   ├── memory_engine/
│   │   │   ├── README.md      # Setup and operational notes for memory_engine
│   │   │   ├── SKILL.md       # Agent routing guidance for memory tools
│   │   │   ├── memory_config.example.json # Template config for memory variables
│   │   │   ├── scripts/
│   │   │   │   ├── auto_sync.py         # Memory auto-sync cron script
│   │   │   │   ├── query_memory.py      # Hybrid search query engine
│   │   │   │   ├── query_analytics.py   # Deterministic structured analytics executor
│   │   │   │   ├── db/                  # DB helpers and init scripts
│   │   │   │   │   ├── init_db.py
│   │   │   │   │   ├── db_helper.py
│   │   │   │   │   └── analytics_repo.py
│   │   │   │   └── sync/
│   │   │   │       ├── summary_sync.py
│   │   │   │       └── analytics_sync.py
│   │   │   └── tools/
│   │   │       ├── query_memory.py # Tool: query_memory
│   │   │       ├── query_analytics.py # Tool: structured analytics executor
│   │   │       └── sync_memory.py  # Tool: sync_memory
│   │   ├── persona_engine/
│   │   │   ├── README.md      # Persona setup and startup prompt integration
│   │   │   ├── SKILL.md       # Agent guidance for persona loading
│   │   │   ├── scripts/
│   │   │   │   └── util/
│   │   │   │       └── persona_loader.py # Persona validation and prompt assembly
│   │   │   └── tools/
│   │   │       ├── list_personas.py # Tool: mcp_list_personas
│   │   │       └── get_persona_prompt.py # Tool: mcp_get_persona_prompt
│   │   ├── mcp_management/
│   │   │   ├── SKILL.md       # Scaffolding guidelines (Resource)
│   │   │   └── tools/
│   │   │       └── create_skill.py # Tool: mcp_create_skill
│   └── utils/
├── personas/                  # Private persona folders + public example template
├── requirements.txt           # Python dependencies
└── ROADMAP_PLAN.md            # Long-term development plan

Deployment & Running Options

You can run Nouva MCP Server either natively using Python or containerized via Docker.

Option A: Native Setup (Python)

1. Prerequisites (System Dependencies)

Install minimal system dependencies required for python packages compilation (e.g. psycopg2 for PostgreSQL):

apt update && apt install -y git build-essential libpq-dev python3-dev

2. Installation

Clone the repository and install the dependencies:

git clone https://github.com/nouverse-tech/nouva-mcp-server.git
cd nouva-mcp-server
pip install -r requirements.txt --break-system-packages

3. Configure Memory

Copy the memory configuration file:

# Setup memory config (includes database credentials)
cp src/skills/memory_engine/memory_config.example.json src/skills/memory_engine/memory_config.json
# Edit src/skills/memory_engine/memory_config.json with your local details:
# - database.host/port/name/user/password (or database.url for full connection string)
# - embedding.url and embedding.model
# - llm.url and llm.model
# - memory_paths.active_memory_dir

4. Running the Server (Stdio Mode)

python3 src/main.py --transport stdio

To enable one persona automatically for every new chat session:

python3 src/main.py --transport stdio --default-persona=nouva-example

If --default-persona is omitted, persona mode remains off and no startup persona prompt is injected by default.


Option B: Docker Setup

We provide a lightweight setup to build and run the MCP server in a Docker container.

1. Build the Docker Image

docker build -t nouverse/nouva-mcp-server:latest .

2. Run with Docker Compose (Production/Standard)

Ensure you have mapped your config files inside docker-compose.yml:

docker compose up -d

3. Run with Docker Compose for Development (Development Setup)

We provide a development configuration that spins up both the PostgreSQL (with pgvector extension) database and the MCP Server inside a single docker network.

  1. Copy the configuration file:

    cp src/skills/memory_engine/memory_config.example.json src/skills/memory_engine/memory_config.json
    

    (Note: The default credentials in memory_config.example.json are pre-configured to match the local PostgreSQL container in docker-compose.dev.yml)

  2. Run the development docker compose:

    docker compose -f docker-compose.dev.yml up -d
    
  3. Initialize the development database: Run the initialization script inside the container (or locally if you have python dependencies installed):

    docker exec -it nouva-mcp-server-dev python3 src/skills/memory_engine/scripts/db/init_db.py
    

Client Integration

1. OpenClaw (Local Stdio Transport)

Add the following configuration to your OpenClaw MCP config (path depends on your installation):

{
  "mcpServers": {
    "nouva-mcp": {
      "command": "python3",
      "args": [
        "/absolute/path/to/nouva-mcp-server/src/main.py",
        "--transport",
        "stdio"
      ]
    }
  }
}

2. Cursor

Cursor reads MCP server configs from:

  • Project-scoped: .cursor/mcp.json
  • User-scoped: ~/.cursor/mcp.json

Option A — Connect via SSE (recommended if the server runs separately, e.g. Docker):

  1. Start the server in SSE mode on the host:
python3 src/main.py --transport sse --port 8000
  1. Add this to .cursor/mcp.json:
{
  "mcpServers": {
    "nouva-mcp": {
      "url": "http://<host>:8000/sse"
    }
  }
}

Option B — Run via stdio (Cursor spawns the process locally):

{
  "mcpServers": {
    "nouva-mcp": {
      "command": "python3",
      "args": [
        "/absolute/path/to/nouva-mcp-server/src/main.py",
        "--transport",
        "stdio"
      ]
    }
  }
}

Cursor MCP docs: https://cursor.com/docs/mcp

3. Zed

Zed stores MCP server configs in its settings file under context_servers. You can add this via UI ("Add Context Server") or edit settings manually.

Manual configuration example (~/.config/zed/settings.json), using stdio:

{
  "context_servers": {
    "nouva-mcp": {
      "command": "python3",
      "args": [
        "/absolute/path/to/nouva-mcp-server/src/main.py",
        "--transport",
        "stdio"
      ],
      "env": {}
    }
  }
}

Zed MCP docs: https://zed.dev/docs/ai/mcp.html

4. Other clients (Windsurf, Hermes, etc.)

Start the server in SSE mode:

python3 src/main.py --transport sse --port 8000

Then connect using:

  • URL: http://<host>:8000/sse
  • Transport: SSE

Do you need additional editor guidelines?

Connecting to the MCP server is enough for tool discovery. For best results, add a short routing rule in your agent instructions:

  • Use mcp_query_analytics for aggregation/time-series questions, but call it with structured arguments only after the agent parses the user's natural-language request. The analytics contract supports date lists, top values, weekday distributions, distinct-date counts, counts by period, grouped top values, and average importance.
  • Use mcp_query_memory for detailed recall and context.
  • Use mcp_get_persona_prompt only at new-session bootstrap time when a persona is explicitly selected or a default persona is configured.

Memory Engine Integration

For detailed setup instructions regarding the 2-lane memory architecture, pgvector recall, SQL analytics, embedding settings, database initialization, and memory sync operations, please refer to the Memory Engine README.

Persona Engine Integration

For startup persona packs, markdown folder structure, required files (IDENTITY.md, SOUL.md, USER.md), fail-fast validation, and --default-persona setup, please refer to the Persona Engine README.

Visual Graph with Obsidian

Since all daily logs and summaries are stored in a clean Markdown format (YYYY-MM-DD.md and _summaries/YYYY-MM-DD.summary.md), you can easily open the active/archived memory directories in Obsidian to explore your memories visually as an interconnected knowledge graph.

Obsidian Graph View

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选