Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mcp_utils.py to maintain a json of all known MCP Servers #9559

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

vinodjayachandran
Copy link

@vinodjayachandran vinodjayachandran commented Mar 26, 2025

Title

Utility function to maintain a json of all known MCP Servers

Relevant issues

Task: LiteLLM should maintain a json of all known MCP Servers, can we get help with a script that scrapes all servers here: https://github.com/modelcontextprotocol/servers/tree/main/src and stores as a json

The benefit of this is we can then allow litellm users to easily reference well known MCP servers

Each server can be stored as the following

{
    "brave-search": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "BRAVE_API_KEY",
        "mcp/brave-search"
      ],
      "env": {
        "BRAVE_API_KEY": "YOUR_API_KEY_HERE"
      }
    }
  }

Pre-Submission checklist

Please complete all items before asking a LiteLLM maintainer to review your PR

  • Unit test cases added.
  • My PR's scope is as isolated as possible, it only solves 1 specific problem.

Type

Utility

Changes

mcp_utils.py iteratively reads all the README.md from https://github.com/modelcontextprotocol/servers/ and updates the existing mcp_servers.json under the root directory of the repo.

Execute python mcp_utils.py

NOTE

  1. It currently doesn't extract sqllite as the README.md has invalid json for mcp server. Needs to fix it as separate documentation PR
  2. README.md for fetch and time doesn't have mcp server written.

Copy link

vercel bot commented Mar 26, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
litellm ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 27, 2025 10:29am

Copy link
Contributor

@ishaan-jaff ishaan-jaff left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • can you update mcp_servers.json in this PR too ?
  • in a separate PR can you make a github action to run this script nightly and only update if there is a change needed

@vinodjayachandran
Copy link
Author

  • can you update mcp_servers.json in this PR too ?
    Done
  • in a separate PR can you make a github action to run this script nightly and only update if there is a change needed
    Sure. Will do

Copy link
Contributor

@ishaan-jaff ishaan-jaff left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please add a test. Otherwise this LGTM

@vinodjayachandran
Copy link
Author

please add a test. Otherwise this LGTM

Done

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants