Back to Home
epicweb-dev icon

mcp-auth

Verified Safe

by epicweb-dev

Overview

An AI agent that provides a journaling interface, allowing users to create, read, update, and manage journal entries and tags through natural language interaction via the Model Context Protocol (MCP). It acts as a client to an external Epic Me database and OAuth server.

Installation

Run Command
npm run dev

Environment Variables

  • PORT (for local development, e.g., 8787)
  • EPIC_ME_AUTH_SERVER_URL (conceptually, though hardcoded to localhost in dev)
  • EPIC_ME_DB (Cloudflare D1 binding)
  • OAUTH_KV (Cloudflare KV Namespace binding)
  • EPIC_ME_MCP_OBJECT (Cloudflare Durable Object binding)

Security Notes

The server relies on an external OAuth 2.0 introspection endpoint (`/oauth/introspection`) to validate bearer tokens. It correctly implements `WWW-Authenticate` headers for unauthorized requests, guiding clients to discover authorization servers. Input validation is performed using `zod` schemas for API requests, which is good practice to prevent common injection vulnerabilities. No 'eval' or obvious code obfuscation found. The hardcoded `EPIC_ME_AUTH_SERVER_URL` to `localhost:7788` is a development configuration; in production, this should be an environment variable.

Similar Servers

Stats

Interest Score41
Security Score8
Cost ClassMedium
Avg Tokens450
Stars18
Forks6
Last Update2025-12-05

Tags

AI AgentJournalingModel Context ProtocolCloudflare WorkersOAuth Client