NeuralNexus MCP (macOS)

NeuralNexus MCP (macOS)

An MCP server for macOS that shares selected folders with NeuralNexus, enabling AI avatars to read local files and analyze Apple Health data via a secure outbound relay.

Category
访问服务器

README

NeuralNexus MCP (macOS)

Share folders on your Mac with NeuralNexus to allow your Avatar to read and analyze your local files from your desktop! Have on demand health analytics from Apple Health! Learn detailed insights in seconds! Receive alerts and notifications based on this health data in the future!

This app runs a small Model Context Protocol (MCP) server on your computer and connects to api.neuralnexus.site over an outbound connection. You do not need:

  • a tunnel service or extra accounts
  • port forwarding
  • inbound firewall rules
  • a public IP

Your files stay on your machine. The API reaches them only through the secure relay you open outward.


Who this is for

Audience What you get
Users Double-click install, pick a folder, leave it running in the background
Developers Local MCP + relay against production or a local Anubis API

Requirements

  • macOS 13 (Ventura) or later
  • A NeuralNexus account and API key (sk-...) from Account settings — Signup Here
  • Network access to api.neuralnexus.site (HTTPS / WSS)

You do not need to install Python yourself. If your Mac does not already have Python 3.11+, the installer downloads a private copy for this app only — it does not change your system Python.


Quick start (users)

1. Get the project

Download this project and unzip it, or:

git clone https://github.com/AfterlifeSystems/anubis-mcp-server-mac-os.git
cd anubis-mcp-server-mac-os

2. Install — double-click

In Finder, double-click:

Install NeuralNexus MCP.command

It opens Terminal and walks you through setup. On first launch you will be asked for:

  1. API key — your NeuralNexus sk-... key
  2. Folder to share — a directory the AI may read (a sensible default is suggested when available, e.g. Health Auto Export data)

First time only: macOS may say the file is from an unidentified developer. Right-click the file → Open → Open, or allow it under System Settings → Privacy & Security.

Permission prompts: macOS asks before any app reads Documents, Downloads, or Desktop. Click Allow when prompted, otherwise NeuralNexus cannot read the folder you chose. See macOS privacy permissions.

Terminal users can run the same thing with:

./neuralnexus-mcp.sh install

3. Confirm it is running

./neuralnexus-mcp.sh status

That is it. The daemon:

  • listens on 127.0.0.1 only (not exposed to the internet)
  • opens an outbound WebSocket to wss://api.neuralnexus.site/mcp/relay
  • registers with NeuralNexus using your API key
  • proxies tool calls from the API to your local MCP server

After install it runs as a launchd LaunchAgent (com.neuralnexus.mcp) and starts when you log in.


Day-to-day commands

Run with no arguments for an interactive menu:

./neuralnexus-mcp.sh

Or use commands directly:

Command What it does
./neuralnexus-mcp.sh install Install dependencies, first-time setup, start the LaunchAgent
./neuralnexus-mcp.sh start Start the service
./neuralnexus-mcp.sh stop Stop the service
./neuralnexus-mcp.sh restart Restart the service
./neuralnexus-mcp.sh status Show service and config status
./neuralnexus-mcp.sh logs Follow live logs
./neuralnexus-mcp.sh uninstall Remove the LaunchAgent
./neuralnexus-mcp.sh uninstall --purge Also remove .venv, saved config, and logs

Equivalent scripts:

./scripts/install.sh
./scripts/stop.sh
./scripts/uninstall.sh
./scripts/uninstall.sh --purge

Logs

./neuralnexus-mcp.sh logs
# or
tail -f ~/Library/Logs/neuralnexus-mcp/daemon.log

While you are logged out

A LaunchAgent runs only while you are logged in, and pauses while the Mac sleeps — this is normal macOS behavior, and there is no macOS equivalent of loginctl enable-linger. To keep a long analysis running, keep the Mac awake with caffeinate -i or System Settings → Displays → Advanced → Prevent automatic sleeping.

stop also unloads the agent, so it stays stopped until you run start again — including across a reboot.

Share more folders

You can share any number of folders. The easiest way is the manager script, which updates the config and restarts the service for you:

./neuralnexus-mcp.sh folders                          # list shared folders
./neuralnexus-mcp.sh add-folder ~/Documents ~/Downloads
./neuralnexus-mcp.sh remove-folder ~/Downloads

The same options are available under "Shared folders" in the interactive menu (./neuralnexus-mcp.sh).

Change settings later

# Activate the venv first if needed
source .venv/bin/activate

python -m src.daemon configure --watch /replace/all/folders
python -m src.daemon configure --add-watch /path/to/another/folder
python -m src.daemon configure --remove-watch /path/to/another/folder
python -m src.daemon status
python -m src.daemon login --api-key sk-...

Config lives in ~/.config/neuralnexus-mcp/. Optional production overrides can go in .env at the repo root (see .env.example).


macOS privacy permissions (TCC)

macOS gates access to ~/Documents, ~/Desktop, ~/Downloads, and iCloud Drive behind per-app consent.

  • Run the installer from Finder or Terminal the first time. The consent prompt is attributed to the app that launched the daemon, so installing from a visible session gets you a prompt you can actually click.
  • If tool calls fail with permission errors after a reboot or login, grant Full Disk Access to Terminal (or to <repo>/.venv/bin/python3.12) under System Settings → Privacy & Security → Full Disk Access, then ./neuralnexus-mcp.sh restart.
  • iCloud Drive: files that show a cloud icon in Finder are "dataless" placeholders and are not on disk yet. read_file_bytes may stall or fail on them until macOS downloads the file — open the folder in Finder and let it sync, or turn off Optimize Mac Storage for that folder.
  • Sharing a folder outside the home directory (an external drive, for example) needs the drive mounted before the daemon starts; a folder that disappears is dropped from the shared list until it comes back.

Non-interactive / scripted install

Useful for automation or managed machines:

export NEURALNEXUS_API_KEY=sk-...
export NEURALNEXUS_WATCH_FOLDER="/path/to/your/data"
./scripts/install.sh

Or:

source .venv/bin/activate   # after deps are installed
python -m src.daemon setup --non-interactive \
  --api-key sk-... \
  --watch /path/to/data \
  --start

How it works (simple picture)

Your Mac                        NeuralNexus API
┌──────────────────────┐        ┌───────────────────────┐
│ Local MCP (127.0.0.1)│◄───────│  Outbound WebSocket   │
│ Shared folder(s)     │  relay │  api.neuralnexus.site │
└──────────────────────┘        └───────────────────────┘
         ▲
         │ only localhost
         │ (not open to the internet)
  1. You choose which folder(s) to share.
  2. MCP serves tools over HTTP on localhost.
  3. The daemon keeps an outbound relay open to the API.
  4. When NeuralNexus needs your files, the API sends requests through that relay only.

Connection modes (developer instructions)

Mode When to use
relay (default) Normal use — outbound WebSocket only
local Development on the same machine as the API

Switch modes:

source .venv/bin/activate
python -m src.daemon configure --connection-mode local

The relay option works without configuration.


Local development (developers)

Dev mode is separate from production: different LaunchAgent, config directory, port, and env file. It does not modify production .env or ~/.config/neuralnexus-mcp/.

Production and dev can run at the same time.

Setup

cp .env.dev.example .env.dev
# Edit .env.dev — defaults point at a local Anubis API

Defaults in .env.dev.example:

Setting Default
API http://localhost:8123
MCP port 9990
Config dir ~/.config/neuralnexus-mcp-dev
LaunchAgent com.neuralnexus.mcp.dev
Logs ~/Library/Logs/neuralnexus-mcp-dev/daemon.log

Optional non-interactive keys in .env.dev:

# NEURALNEXUS_API_KEY=sk-...
# NEURALNEXUS_WATCH_FOLDER=/path/to/test/data

Development helper scripts

./scripts/dev.sh start
./scripts/dev.sh status
./scripts/dev.sh logs
./scripts/dev.sh stop
./scripts/dev.sh restart

Foreground MCP only (no daemon / relay)

source .venv/bin/activate
MCP_REQUIRE_DEVICE_AUTH=false python -m src.server.app

For full daemon + relay against a local Anubis instance, prefer ./scripts/dev.sh.

Daemon CLI (advanced)

source .venv/bin/activate

python -m src.daemon setup          # interactive first-time config
python -m src.daemon start          # MCP + relay in the foreground
python -m src.daemon status
python -m src.daemon configure
python -m src.daemon login

Tests

.venv/bin/pip install -r requirements.dev.txt
.venv/bin/python -m pytest tests/ -v

API contract (Anubis / backend developers)

The local daemon expects these endpoints on the API:

Endpoint Purpose
WSS /mcp/relay Outbound relay; API sends proxy messages, daemon returns proxy_response
POST /mcp/register HTTP registration / pending consent
POST /mcp/heartbeat Keep-alive (every ~30s)
POST /mcp/unregister Clean shutdown

Relay registration (WebSocket)

{
  "type": "register",
  "connection_mode": "relay",
  "device_id": "...",
  "device_secret": "mcp_dev_...",
  "server_name": "macOS-Filesystem",
  "transport": "streamable_http",
  "allowed_roots": ["/absolute/path"],
  "local_mcp_url": "http://127.0.0.1:8000"
}

HTTP registration (connection_mode: relay)

{
  "connection_mode": "relay",
  "transport": "relay",
  "mcp_url": "https://api.neuralnexus.site/mcp/relay/<device_id>",
  "device_secret": "mcp_dev_...",
  "device_id": "...",
  "allowed_roots": ["/absolute/path"],
  "server_name": "macOS-Filesystem"
}

Uninstall

Double-click Uninstall NeuralNexus MCP.command in Finder, or:

# Remove the service only (keep venv + config)
./neuralnexus-mcp.sh uninstall

# Remove service, virtualenv, config, and logs
./neuralnexus-mcp.sh uninstall --purge

Dev service (if you used it):

./scripts/dev.sh stop
launchctl bootout "gui/$(id -u)/com.neuralnexus.mcp.dev" 2>/dev/null
rm -f ~/Library/LaunchAgents/com.neuralnexus.mcp.dev.plist

Troubleshooting

Problem What to try
Installer will not open (unidentified developer) Right-click Install NeuralNexus MCP.command → Open → Open
Install asks for API key / folder every time Check that ~/.config/neuralnexus-mcp/ was written and is readable
Service will not start ./neuralnexus-mcp.sh status and ./neuralnexus-mcp.sh logs
Tool calls return permission errors Grant Full Disk Access (see macOS privacy permissions), then ./neuralnexus-mcp.sh restart
Reading iCloud files hangs or fails The file is not downloaded yet — open it in Finder, or disable Optimize Mac Storage
Stops when you log out Expected — a LaunchAgent runs only while you are logged in
launchctl errors about the domain Run from a logged-in macOS session, not a bare SSH shell
Dev vs prod confusion Prod: ./neuralnexus-mcp.sh + .env + ~/.config/neuralnexus-mcp/ · Dev: ./scripts/dev.sh + .env.dev + ~/.config/neuralnexus-mcp-dev/

Project layout (high overview)

Install NeuralNexus MCP.command    # Double-click installer for non-developers
Uninstall NeuralNexus MCP.command  # Double-click uninstaller
neuralnexus-mcp.sh                 # Main user entrypoint (menu + commands)
scripts/                           # install, stop, uninstall, dev helpers, launchd lifecycle
src/daemon/                        # Setup, relay, registration
src/server/                        # Local MCP HTTP server
.env.example                       # Optional production overrides
.env.dev.example                   # Local Anubis / dev template

Reference Documentation

推荐服务器

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 模型以安全和受控的方式获取实时的网络信息。

官方
精选