nomai-mcp

nomai-mcp

Enables secure, authenticated access to Nomai's tools via Google OAuth 2.1, with email allowlisting for access control.

Category
Visit Server

README

nomai-mcp

Nomai's company MCP server, exposed over remote HTTP and protected with OAuth 2.1.

This server acts as an OAuth Resource Server only: it does not issue tokens or store credentials. It delegates login to Google (Sign in with Google) and validates each request's access token via Google's tokeninfo endpoint, then checks the caller's email against an allowlist.

Setup

  1. In Google Cloud Console:

    • Create a project (or use an existing one).
    • Go to APIs & Services > OAuth consent screen and configure it (External user type is fine; you don't need to publish/verify it for a small internal user list — just add your teammates as test users).
    • Go to APIs & Services > Credentials > Create Credentials > OAuth client ID. Choose the application type your MCP client expects (e.g. "Web application") and add its redirect URI.
    • Copy the generated Client ID.
  2. Copy .env.example to .env and fill in:

    • NOMAI_MCP_GOOGLE_CLIENT_ID — the Client ID from step 1.
    • NOMAI_MCP_ALLOWED_EMAILS — the exact emails allowed to use the server.
    • NOMAI_MCP_RESOURCE_SERVER_URL — this server's own public URL.
  3. Install dependencies and run:

    uv sync
    uv run nomai-mcp
    

    The server listens on NOMAI_MCP_HOST:NOMAI_MCP_PORT (default 0.0.0.0:8000) using the streamable-HTTP MCP transport at /mcp.

Adding tools

Add @mcp.tool()-decorated functions in src/nomai_mcp/server.py. A ping tool is included as a health check — call it once your client has a valid token to confirm auth is wired up correctly.

generate_image generates images from a text prompt (optionally guided by base64-encoded reference images) via the Gemini API's Interactions endpoint, using the Gemini 3.1 Flash Image model. It requires a NOMAI_MCP_GEMINI_API_KEY (from Google AI Studio) — separate from the Google OAuth client used for login.

Connecting a client

When adding this as a custom connector, use the full MCP endpoint URL, including the path — e.g. https://mcp.nomaitech.com/mcp — not just the bare domain. The OAuth discovery/login endpoints live at the domain root, but the actual MCP protocol (streamable-HTTP transport) is only served at /mcp; pointing a client at the bare domain will authenticate successfully and then fail to find any server, since / itself returns 404.

Google doesn't support OAuth Dynamic Client Registration, so MCP clients (Claude Code, Claude.ai, etc.) will need the Client ID from setup step 1 configured manually rather than discovering it automatically — this is an expected, spec-supported fallback, not a bug. The client then takes the user through Google's normal login + consent screen and sends the resulting access token as the bearer token on each request.

Only accounts listed in NOMAI_MCP_ALLOWED_EMAILS will be accepted — anyone else who signs in with Google will authenticate successfully but be rejected by this server with an invalid-token error.

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
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
E2B

E2B

Using MCP to run code via e2b.

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