PTO MCP Server

PTO MCP Server

Exposes PTOAi user context to Agent Builder by connecting to a Supabase database. It allows agents to retrieve user profiles, intake and follow-up data, and manage weekly plans.

Category
Visit Server

README

PTO MCP Server

Minimal MCP server for PTOAi to expose user context to Agent Builder via Supabase.

Requirements

  • Node 18+
  • Supabase URL + Service Role Key

Setup

npm install

Create an env file (or export vars):

export SUPABASE_URL=...
export SUPABASE_SERVICE_ROLE_KEY=...
export MCP_TRANSPORT=http
export PORT=8787
export MCP_ALLOWED_ORIGINS=https://platform.openai.com,https://chatgpt.com
export MCP_HTTP_STATELESS=true
export MCP_OAUTH_COOKIE_SECRET=...
export MCP_OAUTH_REDIRECT_ORIGINS=https://chatgpt.com,https://chat.openai.com
export MCP_PUBLIC_URL=https://mcp-0brh.onrender.com
export SUPABASE_ANON_KEY=...

Run:

npm run dev

HTTP mode (recommended for Agent Builder)

The server runs on:

http://localhost:8787/mcp

Use this URL when connecting your Agent Builder MCP tool.

MCP_HTTP_STATELESS defaults to true, which is generally required for Agent Builder. Set it to false if you have a client that supports MCP session IDs.

OAuth (recommended for production)

The server exposes OAuth endpoints:

  • /.well-known/oauth-authorization-server
  • /oauth/authorize
  • /oauth/token
  • /oauth/register

Set MCP_OAUTH_COOKIE_SECRET and SUPABASE_ANON_KEY. By default the OAuth login page uses Supabase email/password. If you want to use your own login page, set MCP_OAUTH_LOGIN_URL and it will redirect there.

Supabase refresh-token storage (required for long-lived OAuth)

Create a table to store refresh tokens so MCP can auto-refresh access tokens:

create table if not exists public.mcp_oauth_sessions (
  user_id uuid primary key references auth.users (id) on delete cascade,
  refresh_token text not null,
  updated_at timestamptz not null default now()
);

Health check:

http://localhost:8787/health

Stdio mode (local testing)

MCP_TRANSPORT=stdio npm run dev

Tools

  • get_profile
  • get_start_intake_latest
  • get_followup_latest
  • get_weekly_plans
  • save_weekly_plan

All tools require access_token from a signed-in Supabase session. You can also pass a bearer token via the Authorization header.

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