🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

@agentlair/mcp

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@agentlair/mcp

AgentLair MCP server — give AI agents a real email address, vault, calendar, and task delegation. Works with Claude Code, Cursor, Windsurf, and any MCP client.

latest
Source
npmnpm
Version
1.3.0
Version published
Maintainers
1
Created
Source

@agentlair/mcp

Give your AI agent a real email address, persistent vault, and calendar — accessible directly from Claude Code, Cursor, Windsurf, or any MCP client.

npm version License: MIT

What it does

AgentLair MCP gives any MCP-compatible agent runtime access to:

ToolWhat it does
claim_addressClaim a @agentlair.dev email address for your agent
send_emailSend email from your agent to anyone
check_inboxCheck incoming messages
read_messageRead the full body of a specific email
list_addressesList all claimed addresses on your account
vault_putStore a secret or value that persists across sessions
vault_getRetrieve a stored value by key
vault_listList all vault keys (names only — values stay encrypted)
vault_deleteDelete a vault key
calendar_create_eventCreate a calendar event (iCal-subscribable by humans)
calendar_list_eventsList upcoming events
calendar_delete_eventDelete an event
calendar_get_feedGet the iCal subscription URL for calendar apps

No SMTP. No IMAP. No AWS SES setup. Just an API key.

Quick start

1. Get an API key

curl -s -X POST https://agentlair.dev/v1/auth/keys \
  -H "Content-Type: application/json" \
  -d '{"label": "my-mcp-key"}' | jq .

Or visit agentlair.dev to sign up.

2. Add to your MCP client

Claude Desktop / Claude Code

Add to your Claude config file:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json
  • Linux: ~/.config/claude/claude_desktop_config.json
{
  "mcpServers": {
    "agentlair": {
      "command": "npx",
      "args": ["@agentlair/mcp@latest"],
      "env": {
        "AGENTLAIR_API_KEY": "al_your_key_here"
      }
    }
  }
}

Cursor

Add to .cursor/mcp.json in your project root (or ~/.cursor/mcp.json globally):

{
  "mcpServers": {
    "agentlair": {
      "command": "npx",
      "args": ["@agentlair/mcp@latest"],
      "env": {
        "AGENTLAIR_API_KEY": "al_your_key_here"
      }
    }
  }
}

Windsurf

Add to ~/.codeium/windsurf/mcp_config.json:

{
  "mcpServers": {
    "agentlair": {
      "command": "npx",
      "args": ["@agentlair/mcp@latest"],
      "env": {
        "AGENTLAIR_API_KEY": "al_your_key_here"
      }
    }
  }
}

Usage examples

Once configured, just ask your agent naturally:

Claim the email address assistant@agentlair.dev for me.
Send an email to hello@example.com from assistant@agentlair.dev
saying "Your report is ready." with subject "Report"
Check the inbox for assistant@agentlair.dev
Store my OpenAI key in the vault with key "openai-api-key"
Get the value stored under "openai-api-key" from the vault
Create a calendar event "Team sync" on 2026-04-01 from 10:00 to 11:00
and give me the subscription URL so I can add it to Google Calendar

Tools reference

Email

claim_address

Claim a @agentlair.dev email address.

{
  "address": "my-agent@agentlair.dev"
}

send_email

Send an email from a claimed address.

{
  "from": "my-agent@agentlair.dev",
  "to": ["recipient@example.com"],
  "subject": "Hello from Claude",
  "text": "This email was sent by an AI agent."
}

Optional: html, cc, in_reply_to (for threading).

Free tier note: Outgoing emails require human approval before delivery. The response will include a draft_id and a status of queued_for_approval. Approve via the AgentLair dashboard or POST /v1/email/drafts/{draft_id}/send. Paid tier bypasses approval.

check_inbox

Check incoming messages.

{
  "address": "my-agent@agentlair.dev",
  "limit": 10
}

read_message

Read the full body of a message.

{
  "address": "my-agent@agentlair.dev",
  "message_id": "<abc123@mail.example.com>"
}

list_addresses

List all claimed addresses on your account. No parameters required.

Vault

vault_put

Store any value that persists across agent sessions.

{
  "key": "openai-api-key",
  "value": "sk-..."
}

Security note: The vault stores whatever you send. For sensitive secrets, encrypt client-side before storing and decrypt after retrieval. Use @agentlair/vault-crypto for a simple AES-GCM wrapper.

vault_get

Retrieve a stored value.

{
  "key": "openai-api-key"
}

vault_list

List all vault keys (names and metadata only — values never returned in listing).

vault_delete

Delete a vault key permanently.

{
  "key": "openai-api-key"
}

Calendar

calendar_create_event

Create an event on your agent's calendar.

{
  "summary": "Sprint planning",
  "start": "2026-04-07T09:00:00Z",
  "end": "2026-04-07T10:00:00Z",
  "description": "Quarterly sprint kickoff",
  "location": "https://meet.example.com/room",
  "attendees": ["team@example.com"]
}

calendar_list_events

List events, optionally filtered by date range.

{
  "from": "2026-04-01",
  "to": "2026-04-30"
}

calendar_delete_event

Delete an event by ID.

calendar_get_feed

Get the public iCal URL. Paste into Google Calendar, Apple Calendar, or Outlook to subscribe.

Free tier limits

ResourceFree
Email addresses3
Emails sent/day50
Vault keys10
Vault key size16 KB

Running directly (without npx)

npm install -g @agentlair/mcp
AGENTLAIR_API_KEY=al_your_key agentlair-mcp

Or with Bun:

bun run src/index.ts

License

MIT © AgentLair

Keywords

agentlair

FAQs

Package last updated on 06 Jun 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts