civicteam/mcp-auth-guide
3.2
If you are the rightful owner of mcp-auth-guide and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.
This repository provides a practical example of building a secure Model Context Protocol (MCP) server using Express, TypeScript, and Civic Auth.
Secure MCP Server Demo
A practical example of building a secure MCP (Model Context Protocol) server with Express, TypeScript, and Civic Auth.
Overview
This repository demonstrates how to:
- Create an MCP server that exposes your existing APIs to LLMs
- Secure it with OAuth2.0 authentication using @civic/auth-mcp
- Integrate it seamlessly with your Express backend
See the guide at https://docs.civic.com/guides/add-auth-to-mcp
Prerequisites
- Node.js 18+
- pnpm
Installation
pnpm install
Running the Server
pnpm dev
The server will start on http://localhost:3000
Testing
Use the MCP Inspector to test your server:
npx @modelcontextprotocol/inspector
Connect to http://localhost:3000/mcp
using "Streamable HTTP" transport.