Config is the same across clients — only the file and path differ.
{
"mcpServers": {
"oauth-protected-mcp-server": {
"command": "<see-readme>",
"args": []
}
}
}Are you the author?
Add this badge to your README to show your security score and help users find safe servers.
A .NET 9 application that combines an OAuth 2.0 authorization server with a Model Context Protocol (MCP) server in a single process. This server provides secure access to Enphase solar data analysis tools through authenticated MCP connections.
No automated test available for this server. Check the GitHub README for setup instructions.
Five weighted categories — click any category to see the underlying evidence.
No known CVEs.
No package registry to scan.
Be the first to review
Have you used this server?
Share your experience — it helps other developers decide.
Sign in to write a review.
Others in security / developer-tools
XcodeBuildMCP provides tools for Xcode project management, simulator management, and app utilities.
A Model Context Protocol (MCP) server and CLI that provides tools for agent use when working on iOS and macOS projects.
40+ production-ready SwiftUI recipes for building full-stack iOS apps via MCP.
Asynchronous coordination layer for AI coding agents: identities, inboxes, searchable threads, and advisory file leases over FastMCP + Git + SQLite
MCP Security Weekly
Get CVE alerts and security updates for OAuth Protected MCP Server and similar servers.
Start a conversation
Ask a question, share a tip, or report an issue.
Sign in to join the discussion.
A .NET 9 application that combines an OAuth 2.0 authorization server with a Model Context Protocol (MCP) server in a single process. This server provides secure access to Enphase solar data analysis tools through authenticated MCP connections.
As part of my New Learning Journey, I needed an MCP server requiring authorization to test against Claude Code and an Azure AI Foundry Agent.
This was created by combinging these two C# MCP SDK repos as they existed in July/August 2025:
https://github.com/modelcontextprotocol/csharp-sdk/tree/main/samples/ProtectedMcpServer https://github.com/modelcontextprotocol/csharp-sdk/tree/main/tests/ModelContextProtocol.TestOAuthServer
Note: ignore the SSE part of the names here, this is now an Http Transport MCP Server.
Please see my LinkedIn post for more info: https://www.linkedin.com/feed/update/urn:li:share:7364031524003815424/
/.well-known/*, /token, /register, /authorize)/mcpoauth-clients.jsonUpdate ngrok URL in Program.cs (line 39):
var publicBaseUrl = "https://your-ngrok-domain.ngrok-free.app/";
Start ngrok tunnel:
ngrok http 7071 --domain=your-static-domain.ngrok-free.app
Run the application:
dotnet run
Get demo token (displayed on startup):
curl -k -d "grant_type=client_credentials&client_id=demo-client&client_secret=demo-secret&resource=https://your-ngrok-domain.ngrok-free.app/mcp/" -X POST https://your-ngrok-domain.ngrok-free.app/token