Skip to content

Add OAuth 2.0 authentication support to the SerpApi MCP server #38

Description

@sonika-serpapi

While working on the application to submit this MCP server to Anthropic's official connector library, I noticed they require OAuth 2.0 for authenticated services. This is needed to be featured as an official connector here:

Image

Users can still use our MCP as a custom connector by adding it themselves (ref).

Current authentication methods we support:

  • Path-based Authentication (recommended)
    /YOUR_API_KEY/mcp

  • Header-based Authentication
    Authorization: Bearer YOUR_API_KEY

These methods work well for direct integrations but Anthropic's connector directory expects OAuth 2.0 authentication. Without OAuth support, we are unable to list the MCP as an official connector and offer a seamless "Connect SerpApi" experience in Claude.

Not sure if this is possible now, or something we want to work on, but I am noting it here as a finding.

Reference: https://claude.com/docs/connectors/building/submission#submission-requirements

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions