Reference mcp server implementation of draft mcp oauth spec
概要
What is MCP Server Reference Implementation?
The MCP Server Reference Implementation is a reference implementation of the draft MCP OAuth specification, designed to facilitate the use of the Model Context Protocol (MCP) for authentication and authorization.
How to use MCP Server?
To use the MCP Server, clone the repository from GitHub, set up the environment variables, and run the server using npm commands. You can also use ngrok to expose the server to the internet for testing.
Key features of MCP Server?
- Implements the draft MCP OAuth specification.
- Supports multiple authentication providers (Cognito and Keycloak).
- Validates scopes for resource access.
- Easy setup with ngrok for testing.
Use cases of MCP Server?
- Implementing OAuth 2.1 authentication in applications.
- Testing and developing applications that require secure access to resources.
- Integrating with AWS Cognito for user management.
FAQ from MCP Server?
- What authentication providers are supported?
The server supports Cognito and Keycloak as authentication providers.
- Can I run the server locally?
Yes, you can run the server locally by overriding the PORT and PROTOCOL environment variables.
- Is ngrok required for testing?
While ngrok is recommended for testing with OAuth 2.1, you can run the server locally without it if you adjust the settings.