Skip to main content
Glama

vul_cve_search

Retrieve detailed JSON data for a specific CVE ID by querying the CVE-Search API, enabling quick access to vulnerability details for analysis and response.

Instructions

To get a JSON of a specific CVE ID

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
cve_idYes

Implementation Reference

  • main.py:54-60 (handler)
    The handler function for the 'vul_cve_search' tool. It accepts a CVE ID as input, constructs the appropriate API endpoint URI, and retrieves the CVE details using the shared get_requests helper function.
    @mcp.tool() def vul_cve_search(cve_id: str) -> Dict[str, Any]: """ To get a JSON of a specific CVE ID """ uri = f"cve/{cve_id}" return get_requests(uri)
  • main.py:15-26 (helper)
    Helper function that performs HTTP GET requests to the CVE search API (BASE_URL = https://cve.circl.lu/api/), handles errors, and returns JSON data. Used by vul_cve_search and other tools.
    def get_requests(uri: str) -> Dict[str, Any]: """To get a JSON with all the requests""" session = requests.Session() url = f"{BASE_URL}{uri}" try: response = session.get(url, timeout=15) response.raise_for_status() return response.json() except requests.exceptions.RequestException as e: logger.error(f"api request failed: {url} - {str(e)}") return {"error": str(e)}

Other Tools

Related Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/roadwy/cve-search_mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server