NexusNote MCP Server

NexusNote MCP Server

Enables debate search and citation functionality through web search, Wikipedia, arXiv, and AWS documentation APIs. Designed to power debate features with comprehensive research and citation tools via MCP protocol.

Category
Visit Server

README

NexusNote MCP Server Scaffold

This directory contains an initial scaffold for the Anthropic Model Context Protocol (MCP) server that will power debate search/citation tooling. The goal is to let the debate feature call a local MCP endpoint while we iterate, and later move this folder into its own repository for dedicated deployment (ECS/App Runner, etc.).

Folder layout

mcp/
  Dockerfile                 # production container image (multi-stage)
  .dockerignore              # excludes local artefacts from the image build
  package.json               # npm scripts and dependencies
  tsconfig.json              # TypeScript compiler options
  src/                       # MCP server source
    index.ts                 # entry point
    config/env.ts            # environment variable loader
    server/mcp-server.ts     # WebSocket server implementing MCP protocol
    tools/                   # MCP tool definitions and handlers
  infrastructure/            # Standalone AWS CDK app (Option A)
    package.json
    tsconfig.json
    cdk.json
    bin/mcp-infra.ts
    lib/mcp-stack.ts

Running locally

cd mcp
npm install
npm run dev
# or build + run Node output
npm run build
npm run start:websocket

By default the server listens on 0.0.0.0:8080. Configure MCP_HOST and MCP_PORT if you need different bindings.

Required environment variables

Variable Description
SERPAPI_KEY API key for SerpAPI (used by search.web).
LOG_LEVEL Optional Pino log level (info by default).

All other tools (Wikipedia, arXiv, AWS docs) rely on public APIs and do not require keys.

Container image

A production-ready Dockerfile is provided and builds a multi-stage Node.js 20 image. Example build command:

cd mcp
docker build -t nexusnote-mcp .

The runtime stage installs only production dependencies and boots dist/index.js.

Option A — Embedded CDK infrastructure

The infrastructure/ folder contains a standalone AWS CDK v2 application that deploys the MCP server on ECS Fargate behind an Application Load Balancer. The stack builds the container image directly from the mcp/ directory, provisions a VPC with a NAT gateway, and wires Secrets Manager to the runtime (SERPAPI_KEY).

Prerequisites

  1. Bootstrap the target AWS environment if you have not already:
    cd mcp/infrastructure
    npm install
    npx cdk bootstrap
    
  2. Store your SerpAPI key in AWS Secrets Manager (string secret is expected), for example:
    aws secretsmanager create-secret \
      --name nexusnote/mcp/serpapi \
      --secret-string "<YOUR_SERPAPI_KEY>"
    
  3. Ensure Docker is available locally so CDK can build the image asset.

Deploy

cd mcp/infrastructure
npm install                # one-time
npm run build
export SERPAPI_SECRET_NAME=nexusnote/mcp/serpapi
# Optional overrides:
# export STACK_NAME=NexusNoteMcpStack
# export MCP_DESIRED_COUNT=2
# export MCP_FARGATE_CPU=1024
# export MCP_FARGATE_MEMORY=2048
# export MCP_LOG_LEVEL=debug
npm run synth
npm run deploy

Outputs include the Application Load Balancer DNS name and a ws:// URL you can plug into the debate backend.

Stack behaviour

  • VPC with two AZs and one NAT gateway (required for outbound internet calls to SerpAPI, Wikipedia, etc.).
  • Fargate service with configurable CPU, memory, desired count, and port (defaults: 512 CPU, 1024 MiB, 1 task, port 8080).
  • Secrets Manager integration for SERPAPI_KEY.
  • CloudWatch Logs group /nexusnote/mcp/{stackName} retaining logs for 30 days.
  • ALB health checks accept HTTP status codes 200-499, allowing the WebSocket server’s 426 upgrade response to pass.

Next steps

  • Wire the debate backend to call the deployed MCP WebSocket endpoint.
  • Add CI/CD to build and push the image automatically (ECR + CDK deploy).
  • Expand the test suite to cover each MCP tool’s error handling and API quota limits.

TODO

  • [ ] Automate MCP image builds and CDK deploys through CI so the service stays in sync with NexusNote releases.
  • [ ] Tighten network access when exposing beyond internal integrations (e.g., restrict the ALB security group or front with a private link).

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured