Back to Home
clerk icon

mcp-tools

Verified Safe

by clerk

Overview

Provides a TypeScript library to simplify building Model Context Protocol (MCP) clients and servers, enabling AI applications to securely access private user data through OAuth-based authentication flows.

Installation

Run Command
No command provided

Environment Variables

  • CLERK_PUBLISHABLE_KEY
  • CLERK_SECRET_KEY
  • NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY
  • REDIS_URL
  • DATABASE_URL
  • JWT_SECRET

Security Notes

The project follows good security practices including PKCE for OAuth flows and parameterized queries for database interactions (SQLite, Postgres), mitigating SQL injection risks. Environment variables are used for sensitive keys like Clerk API keys and database credentials. Publicly exposed OAuth metadata endpoints use `Access-Control-Allow-Origin: *` which is acceptable for metadata but should not be broadly applied to sensitive data endpoints. A minor `@ts-expect-error` is used for augmenting the Express request object, which is a common pattern but bypasses type safety.

Similar Servers

Stats

Interest Score42
Security Score9
Cost ClassLow
Stars28
Forks8
Last Update2026-01-15

Tags

MCPAIAuthenticationOAuthNext.js