Skip to content
markustrippPublic

About

[Discontinued] Open-source email and calendar backend for AI agents via MCP. No longer under active development.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

NoLook

Warning

Discontinued: NoLook is no longer under active development, and the hosted service (nolookai.com / api.nolookai.com) has been shut down. This repository remains publicly available as-is under the MIT License for reference, without further updates or maintenance.

Inboxless email and calendar for AI agents.

NoLook is an open-source email and calendar backend that lets an AI client work with your inbox through MCP. There is no inbox UI: agents receive, summarize, organize, and reply to email, manage attachments, and handle calendar events and RSVPs directly from tools such as Codex, Claude Code, and Cursor.

The service uses Next.js, Convex, Resend, and Vercel Blob. nolookai remains the technical project and domain name; NoLook is the product name.

Features

  • Send and receive email through Resend
  • Optionally limit external deliveries per mailbox and rolling hour
  • Store messages, customer context, summaries, and mailbox assignments in Convex
  • Store attachment content in private Vercel Blob storage
  • Manage events, recurring event groups, invitations, and RSVP replies
  • Expose agent and administrative tools through authenticated MCP
  • Reveal and independently rotate encrypted mailbox and ICS credentials
  • Publish a private-token, read-only ICS calendar feed
  • Add a branded React Email layout to external email
  • Keep automation behavior in a customizable skill for each mailbox

See Product architecture for the data model, use cases, and current decisions.

Quick Start

You need Node.js 20 or newer, pnpm 11, and accounts for Convex, Resend, and Vercel Blob.

git clone https://github.com/markustripp/nolookai.git
cd nolookai
pnpm install
cp .env.example .env.local
pnpm setup:local-env

Link or create a Convex development project and keep it running:

pnpm exec convex dev

Add the Resend and Blob values to .env.local, then sync the generated admin token to the linked Convex deployment:

pnpm setup:convex-env
pnpm dev:app

The local service is available at http://localhost:3000; its MCP endpoint is http://localhost:3000/api/mcp.

Service Configuration

  1. Verify a sending and receiving domain in Resend.
  2. Create a Resend webhook for email.received at https://your-domain.example/api/resend and copy its signing secret.
  3. Create a private Vercel Blob store and copy its read/write token.
  4. Set the variables from .env.example in local development and Vercel.
  5. Deploy the Convex functions and the Next.js service for a public HTTPS endpoint.
  6. Set the same MCP_ADMIN_TOKEN in the Next.js deployment and the matching Convex deployment.
  7. Set NOLOOK_TOKEN_ENCRYPTION_KEY only in the Next.js service and keep a secure backup. pnpm setup:local-env generates a suitable local key.

Set NOLOOK_MAX_EXTERNAL_DELIVERIES_PER_HOUR=25 to enable the optional per-mailbox abuse limit. Each external recipient counts once, including organizer calendar invitations, updates, and cancellations. Internal messages and participant RSVP replies do not count. Leave it unset or set it to 0 for unlimited sending. Use admin_set_external_delivery_limit for a per-user override; omit its limit to inherit the environment value or set it to 0 to make that user unlimited.

For real inbound email, the Resend webhook must reach a public deployment. The repository also includes optional Portless/Tailscale and live-harness scripts; the detailed test flows are documented in Product architecture.

Create a Mailbox

Connect an MCP client to /api/mcp using MCP_ADMIN_TOKEN as its bearer token, then call admin_create_user:

{
  "primaryEmail": "you@example.com",
  "accessToken": "a-strong-random-agent-token",
  "icsToken": "a-different-strong-random-token"
}

Generate independent tokens with at least 32 random bytes. NoLook stores hashes for authentication and AES-GCM encrypted copies for admin-only retrieval, creates the primary receiving alias, and returns the user ID. Use the raw accessToken in AI clients; do not give them MCP_ADMIN_TOKEN.

Administrative clients can call admin_get_user_credentials, admin_rotate_access_token, and admin_rotate_ics_token. Existing hash-only credentials remain valid but cannot be revealed until independently rotated. Rotating an access token disconnects configured AI clients immediately; rotating an ICS token invalidates the previous calendar subscription URL.

Connect AI Clients

Replace the URL and token below with your deployment and mailbox access token. After connecting, call get_current_user to verify authentication.

Codex

Set the token in your shell:

export NOLOOK_TOKEN="your-mailbox-access-token"

Add this to ~/.codex/config.toml:

[mcp_servers.nolook]
url = "https://your-domain.example/api/mcp"
bearer_token_env_var = "NOLOOK_TOKEN"

Restart Codex or open its MCP settings to load the server.

Claude Code

Set NOLOOK_TOKEN in the environment that launches Claude Code, then add a project-level .mcp.json or equivalent user-level configuration:

{
  "mcpServers": {
    "nolook": {
      "type": "http",
      "url": "https://your-domain.example/api/mcp",
      "headers": {
        "Authorization": "Bearer ${NOLOOK_TOKEN}"
      }
    }
  }
}

Run claude mcp list to confirm the connection. Claude.ai and Claude Desktop may require OAuth for published remote connectors; the current NoLook server uses bearer-token authentication and is intended for MCP clients that support custom headers.

Cursor

Add the server in Cursor Settings > MCP, or place this in your user-level ~/.cursor/mcp.json:

{
  "mcpServers": {
    "nolook": {
      "url": "https://your-domain.example/api/mcp",
      "headers": {
        "Authorization": "Bearer your-mailbox-access-token"
      }
    }
  }
}

Keep token-bearing Cursor configuration outside the repository.

The starter agent workflow is in .agents/skills/nolookai-client-automation/SKILL.md.

Hosted Service (Discontinued)

The hosted NoLook service at nolookai.com has been discontinued and shut down. This repository remains available as-is under the MIT License for reference.

Development

pnpm test:once       # unit and integration tests
pnpm test:coverage   # TypeScript coverage report
pnpm lint
pnpm build
pnpm smoke:live      # configured external services

This project is discontinued and no longer actively maintained. Issues and pull requests are not being monitored.

Security

  • Never expose or commit MCP_ADMIN_TOKEN, mailbox access tokens, or ICS tokens.
  • Treat inbound email, attachments, and calendar content as untrusted input.
  • Use separate development and production credentials.
  • Review the deployment and run the test suite before routing important mail to NoLook.

Please report security issues privately to the repository owner rather than in a public issue.

License

NoLook is available under the MIT License.

About

[Discontinued] Open-source email and calendar backend for AI agents via MCP. No longer under active development.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages