semantic-wake-intelligence
Wake Intelligence MCP Server - Temporal intelligence for AI agents with 3-layer brain architecture (Past/Present/Future)
claude mcp add --transport stdio semanticintent-semantic-wake-intelligence-mcp npx -y semantic-wake-intelligence-mcp \ --env NODE_OPTIONS="--max-old-space-size=4096" \ --env WRANGLER_D1_DATABASE_ID="your-database-id-from-above-command"
How to use
This MCP server implements the Wake Intelligence brain, a 3-layer temporal intelligence system that combines causality (Past), memory management (Present), and predictive pre-fetching (Future) to enhance AI agent decision making. The server exposes tools for tracking WHY contexts were created, managing active vs. archived data, and predicting WHAT contexts will be needed next. You can use it to trace decision history, manage memory tiers, and proactively fetch relevant contexts. To run it locally, install the CLI tooling (wrangler) and deploy the Cloudflare workers-based MCP using the provided configuration. The available capabilities include causal-chain tracking, 4-tier memory classification, LRU-based prioritization, and composite prediction scoring for pre-fetching. The architecture is hexagonal, enabling you to test business logic independently from infrastructure, while preserving semantic intent across layers.
How to install
Prerequisites:
- Node.js 20.x or higher
- npm (comes with Node.js)
- Wrangler CLI (for Cloudflare Workers) - install with: npm install -g wrangler
Installation steps:
-
Clone the repository: git clone https://github.com/semanticintent/semantic-wake-intelligence-mcp.git cd semantic-wake-intelligence-mcp
-
Install dependencies: npm install
-
If you plan to deploy to Cloudflare Workers, configure Wrangler and D1:
- Copy example Wrangler config if provided, or create wrangler.jsonc
- Create a D1 database for the MCP: wrangler d1 create mcp-context
- Update wrangler.jsonc with the generated database_id
-
Run local migrations and start the server (as described in the repo’s quick start): wrangler d1 execute mcp-context --local --file=./migrations/0001_initial_schema.sql wrangler d1 execute mcp-context --file=./migrations/
-
Start or deploy the MCP according to your environment preferences (local dev vs. production):
- Local development: wrangler dev
- Production deploy: wrangler publish
Note: The MCP uses a Cloudflare Workers-based runtime with a D1 database for persistence. Ensure your environment variables (e.g., D1 database_id) are configured as described in the repository documentation.
Additional notes
Tips and caveats:
- Ensure Node.js 20.x is installed to match the server’s TypeScript target.
- If migrating from a previous setup, keep your D1 migrations under migrations/ and run them in order.
- The 3-layer architecture (Past/Present/Future) relies on time-based scoring; consider adjusting decay rates only after profiling in your workload.
- For deployment, the Wrangler CLI requires authentication with Cloudflare; run wrangler login before first deploy.
- If you see memory issues, adjust Node.js memory limit via NODE_OPTIONS in your environment variables.
- The MCP relies on semantic contracts; maintain clear naming for contexts and events to preserve observability.
Related MCP Servers
gemini-cli
An open-source AI agent that brings the power of Gemini directly into your terminal.
kollektiv
Kollektiv MCP enables you to chat with and query your own documents directly from IDEs and MCP clients. Private, secure, and integrated into your favorite code editor
mcp -js
MCP server that exposes YepCode processes as callable tools for AI platforms. Securely connect AI assistants to your YepCode workflows, APIs, and automations.
mcpresso
TypeScript framework to build robust, agent-ready MCP servers around your APIs.
architect
A powerful, self-extending MCP server for dynamic AI tool orchestration. Features sandboxed JS execution, capability-based security, automated rate limiting, marketplace integration, and a built-in monitoring dashboard. Built for the Model Context Protocol (MCP).
google -remote
Collection of Google-native tools (e.g., Gmail, Calendar) for the MCP