Nexus Impact AI MCP Server
Emits latency and token telemetry to Amazon CloudWatch for monitoring MCP tool usage and model performance.
Stores evidence outputs and field reports in an encrypted Amazon S3 Evidence Vault using SSE-KMS, supporting secure archival of generated outputs.
Provides AI inference through Amazon Bedrock Converse API, enabling the seven domain-specialized agents to generate structured reports and voice-friendly summaries using Anthropic Claude 3.5 Sonnet and Amazon Nova Pro/Micro models.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
Nexus Impact AI
Specialized Social-Impact AI Workspace Powered by Amazon Bedrock & Model Context Protocol (MCP)
Submitted to the Amazon Developer Hackathon — Alexa+ Track and Open Source Mini Challenge
What Nexus Impact AI Does
Frontline researchers, disaster coordinators, and local community NGOs operate in high-stakes environments where generic consumer chatbots produce superficial generalities and hallucinated operational figures.
Live Execution Notice: The Amazon Bedrock integration is implemented in code (
src/bedrockService.tsvia@aws-sdk/client-bedrock-runtime), but has not been run live against a paid AWS account; testing in this environment runs in simulated mode without AWS keys.
Nexus Impact AI provides 7 domain-specialized AI agents grounded in international operational standards (Sphere, WHO, Istanbul Protocol):
Research Evidence Synthesizer: Produces 5-column systematic evidence matrices, PRISMA/Cochrane quality grading, methodological bias critiques, and policy translation protocols.
Humanitarian Emergency Responder: Calculates strict Sphere Standards (2018) allocations (15L potable water/person/day, 20 persons/latrine stall, 3.5m² covered shelter space) with 72-hour operational checklists.
Public Health & Epidemiologist: Models epidemic growth curves ($R_t$, doubling time), drafts WHO EWARS surveillance profiles, and structures vaccine cold-chain risk assessments (+2°C to +8°C).
Donor Grant Proposal Architect: Drafts 7-section institutional proposals for USAID (BHA), EU ECHO, and the Global Fund with verifiable 6-column logframes and 5-column risk matrices.
Human Rights & Legal Monitor: Structures Istanbul Protocol-compliant legal documentation briefs referencing ICCPR, ICESCR, and CEDAW duty-bearer liability.
Maternal & Reproductive Health Specialist: Formulates clinical Emergency Obstetric (CEmONC/BEmONC) workflows and survivor-centered Clinical Management of Rape (CMR) pathways with 72-hour PEP timelines.
Institutional Knowledge Base & SOP Synthesizer: Cross-references local field assessments, indicators, and organizational history to extract reusable SOPs.
Every agent output generates both a voice-friendly short summary for spoken Alexa+ delivery and a comprehensive structured report.
Related MCP server: Codex Harness MCP
Architecture Diagram
graph TD
subgraph Client ["Client Layer (Web / PWA / Alexa Device)"]
UI["Nexus React 19 Frontend\n(Mobile-First Shell)"]
AlexaSim["Alexa+ Voice Simulator\n(Web Speech API + SpeechSynthesis)"]
AlexaDev["Amazon Echo / Alexa+ Device"]
IDB[("IndexedDB Local Vault\nCached Outputs + Offline Queue")]
SW["Service Worker\nApp Shell Cache"]
end
subgraph Server ["Server-Side Gateway (Node.js / Express / Vite Middleware)"]
MCP["MCP Streamable HTTP Endpoint\nPOST & GET /mcp (Spec 2025-11-25)"]
AgentAPI["REST Proxy Gateway\nPOST /api/agent/generate"]
Security["Security Validator\nOrigin & Host Whitelisting"]
QueueDrainer["Offline Queue Drainer\nAuto-sync upon reconnection"]
end
subgraph AWS ["Amazon Web Services Infrastructure"]
Bedrock["Amazon Bedrock Runtime\nConverse API (Cross-Region)"]
FoundationModel["Configured Foundation Model\ne.g., Anthropic Claude / Amazon Nova"]
Nova["Amazon Nova Pro / Micro\namazon.nova-pro-v1:0"]
S3Vault["Amazon S3 Evidence Vault\nSSE-KMS Encrypted Archive"]
CloudWatch["Amazon CloudWatch\nLatency & Token Telemetry"]
end
AlexaDev -->|Streamable HTTP| MCP
AlexaSim -->|JSON-RPC 2.0 tools/call| MCP
UI -->|POST /api/agent/generate| AgentAPI
UI <--->|Read / Write Offline Cache| IDB
SW <--->|Cache Shell| UI
MCP --> Security
AgentAPI --> Security
Security --> Bedrock
Bedrock --> FoundationModel
Bedrock --> Nova
AgentAPI -.-> S3Vault
AgentAPI -.-> CloudWatch
IDB -.->|Drain Pending Requests| QueueDrainer
QueueDrainer --> AgentAPISetup in 5 Commands or Fewer
# 1. Clone repository
git clone https://github.com/your-username/nexus-impact-ai.git && cd nexus-impact-ai
# 2. Install dependencies
npm install
# 3. Configure environment
cp .env.example .env
# 4. Start development server
npm run dev
# 5. Open browser at http://localhost:3000Environment Variables Table
Variable | Description | Default | Required? |
| Unlocks all 7 specialized agents |
| Recommended |
| When false (default), missing cloud credentials returns a setup notice. If true, returns answers using the bundled humanitarian knowledge pack |
| Production: False |
| Amazon Bedrock Model or Inference Profile ID (e.g. |
| Required for Cloud |
| AWS Region for Amazon Bedrock API calls |
| Optional |
| AWS IAM Access Key ID (Server-Side Only) |
| Required for Cloud |
| AWS IAM Secret Access Key (Server-Side Only) |
| Required for Cloud |
| Per-IP sliding-window rate limit per minute |
| Optional |
| Per-IP sliding-window rate limit per 24h |
| Optional |
| Global daily request cap across all users |
| Optional |
| Maximum characters accepted per agent request |
| Optional |
| Maximum generation tokens per Bedrock Converse call |
| Optional |
| Local web and MCP server port |
| Optional |
Security Rule: AWS credentials are strictly server-side. No access keys or secrets are ever bundled or transmitted to the browser client.
Deploy on Render (Production Long-Running Node Host)
Nexus Impact AI includes a production-ready render.yaml specification configured for Render web services:
Option 1: Automatic Blueprint Deployment
Push this repository to your GitHub account.
In the Render Dashboard, click New + → Blueprint.
Select your repository. Render automatically reads
render.yamland prepares the web service.Fill in your secret environment variables:
AWS_ACCESS_KEY_ID,AWS_SECRET_ACCESS_KEY, andBEDROCK_MODEL_ID.Click Apply.
Option 2: Manual Web Service Configuration
If creating a Web Service manually in Render:
Environment / Runtime:
NodeNode Version:
22(or setNODE_VERSION=22)Build Command:
npm install --include=dev && npm run buildStart Command:
npm start(runsnode server.js)Health Check Path:
/api/healthEnvironment Variables:
NODE_ENV:productionAWS_REGION:us-east-1AWS_ACCESS_KEY_ID:[Your AWS Access Key ID]AWS_SECRET_ACCESS_KEY:[Your AWS Secret Access Key]BEDROCK_MODEL_ID:us.anthropic.claude-3-5-sonnet-20241022-v2:0UNLOCK_ALL_AGENTS:trueALLOW_SIMULATED_RESPONSES:falseMCP_PROTOCOL_VERSION:2025-11-25
Render automatically sets PORT and manages TLS/HTTPS certificates. Once deployed, verify your instance by clicking "Test Connection" on the Technical Architecture page or opening /selftest.
How to Run the Model Context Protocol (MCP) Server
Nexus Impact AI implements the official Model Context Protocol (MCP) Specification (2025-11-25) over Streamable HTTP:
Endpoint:
POST /mcpandGET /mcpProtocol Handshake: Returns
text/event-streamSSE withevent: endpointandevent: readyHeader Standard: Supports
MCP-Protocol-Version: 2025-11-25andMcp-Session-IdJSON-RPC 2.0 Dispatch:
initialize,ping,tools/list, andtools/call
Test with cURL
# 1. Initialize MCP Handshake
curl -X POST http://localhost:3000/mcp \
-H "Content-Type: application/json" \
-H "MCP-Protocol-Version: 2025-11-25" \
-d '{"jsonrpc":"2.0","method":"initialize","params":{"protocolVersion":"2025-11-25"},"id":1}'
# 2. List Registered Tools (8 tools returned)
curl -X POST http://localhost:3000/mcp \
-H "Content-Type: application/json" \
-H "MCP-Protocol-Version: 2025-11-25" \
-d '{"jsonrpc":"2.0","method":"tools/list","params":{},"id":2}'
# 3. Call Humanitarian Tool via JSON-RPC 2.0
curl -X POST http://localhost:3000/mcp \
-H "Content-Type: application/json" \
-H "MCP-Protocol-Version: 2025-11-25" \
-d '{"jsonrpc":"2.0","method":"tools/call","params":{"name":"humanitarian_emergency_response","arguments":{"location":"Lower Shabelle, Somalia","population":"18,000"}},"id":3}'Testing with MCP Inspector (@modelcontextprotocol/inspector)
You can test the Streamable HTTP MCP endpoint interactively using the official Model Context Protocol Inspector:
# Launch MCP Inspector pointing to the local streamable HTTP endpoint
npx @modelcontextprotocol/inspector http://localhost:3000/mcpOrigin Policy: External MCP clients (CLI, inspector, Claude Desktop) send no
Originheader and are accepted.Browser Protection: Web browser requests sent with an unrecognized
Originheader are rejected with403 Forbiddento prevent cross-site RPC hijacking.
In the web interface, open the Alexa+ tab to use the built-in microphone simulator and inspect live JSON-RPC 2.0 request/response logs in real time.
AWS Budget & Cloud Cost Protection
To protect against runaway costs when exposing the application or running demonstrations, Nexus Impact AI enforces multiple layers of server-side cost protection:
Per-IP Rate Limiting: Enforced in memory via sliding windows (
RATE_LIMIT_PER_MINUTE=10,RATE_LIMIT_PER_DAY=60).Global Daily Request Cap: Global limit across all users (
DAILY_REQUEST_CAP=200). This cap applies to both/api/agent/generateand/mcp tools/call.Max Input Length: Inputs exceeding
MAX_INPUT_LENGTH=10000characters are rejected with a 400 error.Token Generation Cap: Bedrock
ConverseCommandcalls are capped atMAX_TOKENS_CAP=2048tokens.Request Timeouts: Calls to Bedrock are aborted after
REQUEST_TIMEOUT_MS=25000(25 seconds).
Setting Up an AWS Budget Alert
We strongly recommend creating a zero-cost AWS Budget alert in your AWS account:
Open the AWS Billing and Cost Management Console → Budgets.
Click Create budget → Select Cost budget (Recommended).
Set your monthly target (e.g. $10.00 USD).
Configure an alert threshold at 80% of actual spend and 100% of forecasted spend.
Add your email address or an Amazon SNS topic to receive instant email notifications if Bedrock usage approaches your threshold.
Running Automated Tests & Linting
# 1. Run MCP protocol conformance, PII redaction, AES-GCM encryption & safety guardrails tests
npm run test:mcp
# 2. Type check and code validation
npm run lint
# 3. Production build verification
npm run buildCrisis & Displacement Settings: Privacy By Design
Engineered specifically for IDPs, refugees, host communities, and frontline responders in low-connectivity zones of sub-Saharan Africa:
Anonymous Use: Zero accounts, zero login, zero tracking, zero third-party analytics scripts.
Prompt Privacy: This application does not log prompt text; Render and AWS maintain standard infrastructure and network logs.
Client-Side PII Redaction: Phone numbers, emails, UNHCR/national IDs, GPS coordinates, and victim names are scrubbed before any cloud call.
On-Device AES-GCM 256-Bit Encryption: Optional user passphrase protects local IndexedDB vault records using the browser Web Crypto API.
Quick Exit / Panic Wipe: Instant data erase button on every screen +
Escpressed 3 times clears IndexedDB, caches, and localStorage, redirecting to a neutral site.11 Languages Supported: English, Arabic (RTL), French, Portuguese, Swahili, Amharic, Tigrinya, Oromo, Somali, Hausa, and Kinyarwanda with device auto-detection and honest on-device vocabulary warnings.
Offline Sharing: Transfer field outputs without internet via scannable on-device QR codes, print-friendly views, or Markdown exports.
How to Test Offline Mode (Evaluation Walkthrough)
Humanitarian responders and epidemiologists frequently operate in conflict corridors or disaster zones with zero internet access. Nexus Impact AI operates genuinely offline:
In the top header bar, click the Online pill. It immediately switches to Offline Mode with an amber indicator.
Select any agent (e.g., Humanitarian Emergency Response or Public Health).
Click "Run Sample Scenario Now (<30s Result)".
Observe the response:
Notice the badge explicitly says:
On-device (offline, lower accuracy).The output is grounded in the bundled Offline Knowledge Pack (Sphere Handbook 2018, WHO Field Protocols) with open-license citations.
The request is automatically queued in local IndexedDB.
Click the Vault icon in the header toolbar to view your saved offline outputs and see
1 queuedin the Sync Queue.Click the header badge to switch back to Online, then click "Re-run All Online" in the vault to upgrade your output with live cloud inference!
License
Licensed under the MIT License.
This server cannot be deployed
Maintenance
Related MCP Connectors
MCP server for your apps' tools and custom tools, plus hosted AI agents and approval-gated workflows
Remote MCP server exposing SMI Aware tools, resources, and skills over Streamable HTTP.
AI Reasoning Cache & Consensus Layer with 11 MCP tools via Streamable HTTP.
214 tools for AI agents over one MCP endpoint: image, video, audio, 3D, data, storage, mail, GPUs.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceAn MCP server framework enabling standardized tool registration, discovery, and invocation over JSON-RPC 2.0, with support for InProcess, SSE, and WebSocket transports, plus built-in tools such as calculator, text processor, and JSON formatter.MIT
- FlicenseNot gradedqualityAmaintenanceEnables MCP-compatible AI clients to invoke CLI-driven agent tools over Streamable HTTP, including shell execution, file operations, patching, image viewing, web search, and nested agent tasks, with permission modes and real-time progress streaming.-
- AlicenseNot gradedqualityBmaintenanceEnables AI agents to discover and invoke backend tools over MCP JSON-RPC while enforcing 3-legged OAuth 2.0 identity propagation, role-based access control, and protocol transcoding to REST APIs.1Apache 2.0
- AlicenseNot gradedqualityCmaintenanceEnables AI agents and other MCP clients to register, discover, invoke, and route Python-based tools through a lightweight JSON-RPC gateway, while tracking latency, success rates, and errors.MIT