Koskamo

clinicaltrialsgov-mcp-server

This MCP server enables agents to search over 600,000 studies on ClinicalTrials.gov, fetch full study records and posted results, and match patient profiles to eligible recruiting trials. It supports STDIO or Streamable HTTP connections and requires no API key.

Package and access

Local package with source-attributed installation metadata. Koskamo does not execute packages during review.

clinicaltrialsgov-mcp-server logo, by cyanheadsCommunity listingLocal stdioSource reviewed; not executedPublished by cyanheads
Vendor documentation

What you can do with it

  • Search studies with full-text and field-specific queries
  • Fetch full study records and posted results by NCT ID
  • Match patient demographics to candidate recruiting trials

Source and maintenance

Community listingRegistry 2.10.2
Maintenance checked

Packages and installation

Source-provided package data. Koskamo has not executed or live-probed this package.

clinicaltrialsgov-mcp-server 2.10.2

npmnpx
clinicaltrialsgov-mcp-server package definition
{
  "version": "2.10.2",
  "transport": "stdio",
  "identifier": "clinicaltrialsgov-mcp-server",
  "runtimeHint": "npx",
  "registryType": "npm",
  "registryBaseUrl": "https://registry.npmjs.org",
  "environmentVariables": [
    {
      "name": "CT_API_BASE_URL",
      "format": "string",
      "default": "https://clinicaltrials.gov/api/v2",
      "description": "ClinicalTrials.gov API base URL."
    },
    {
      "name": "CT_REQUEST_TIMEOUT_MS",
      "format": "string",
      "default": "30000",
      "description": "Per-request timeout in milliseconds; a positive integer."
    },
    {
      "name": "CT_MAX_PAGE_SIZE",
      "format": "string",
      "default": "200",
      "description": "Most studies one clinicaltrials_search_studies page returns; an integer of at least 1, values above 1000 clamp to 1000."
    },
    {
      "name": "MCP_LOG_LEVEL",
      "format": "string",
      "default": "info",
      "description": "Sets the minimum log level for output (e.g., 'debug', 'info', 'warn')."
    }
  ]
}

Tools

Reported by the attributed source; not independently observed by Koskamo.

No tool definitions available.

Connect from your client

Each snippet configures the same source-provided package; replace placeholders before use.

This server is operated by the named third party. Listing and endpoint checks are not an endorsement or a security audit. Review the operator's permissions, terms, and data handling before connecting. How listings are checked and corrected.

Cursor

Merge this local stdio configuration, replace every placeholder environment value, and restart Cursor. Koskamo has not executed this package.
Cursor configuration
{
  "mcpServers": {
    "clinicaltrialsgov-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "clinicaltrialsgov-mcp-server@2.10.2"
      ],
      "env": {
        "CT_API_BASE_URL": "<YOUR_CT_API_BASE_URL>",
        "CT_REQUEST_TIMEOUT_MS": "<YOUR_CT_REQUEST_TIMEOUT_MS>",
        "CT_MAX_PAGE_SIZE": "<YOUR_CT_MAX_PAGE_SIZE>",
        "MCP_LOG_LEVEL": "<YOUR_MCP_LOG_LEVEL>"
      }
    }
  }
}

Cline

Merge this local stdio configuration, replace every placeholder environment value, and restart Cline. Koskamo has not executed this package.
Cline configuration
{
  "mcpServers": {
    "clinicaltrialsgov-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "clinicaltrialsgov-mcp-server@2.10.2"
      ],
      "env": {
        "CT_API_BASE_URL": "<YOUR_CT_API_BASE_URL>",
        "CT_REQUEST_TIMEOUT_MS": "<YOUR_CT_REQUEST_TIMEOUT_MS>",
        "CT_MAX_PAGE_SIZE": "<YOUR_CT_MAX_PAGE_SIZE>",
        "MCP_LOG_LEVEL": "<YOUR_MCP_LOG_LEVEL>"
      }
    }
  }
}

VS Code

Merge this local stdio configuration, replace every placeholder environment value, and restart VS Code. Koskamo has not executed this package.
VS Code configuration
{
  "servers": {
    "clinicaltrialsgov-mcp-server": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "clinicaltrialsgov-mcp-server@2.10.2"
      ],
      "env": {
        "CT_API_BASE_URL": "<YOUR_CT_API_BASE_URL>",
        "CT_REQUEST_TIMEOUT_MS": "<YOUR_CT_REQUEST_TIMEOUT_MS>",
        "CT_MAX_PAGE_SIZE": "<YOUR_CT_MAX_PAGE_SIZE>",
        "MCP_LOG_LEVEL": "<YOUR_MCP_LOG_LEVEL>"
      }
    }
  }
}

Claude Desktop

Merge this local stdio configuration, replace every placeholder environment value, and restart Claude Desktop. Koskamo has not executed this package.
Claude Desktop configuration
{
  "mcpServers": {
    "clinicaltrialsgov-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "clinicaltrialsgov-mcp-server@2.10.2"
      ],
      "env": {
        "CT_API_BASE_URL": "<YOUR_CT_API_BASE_URL>",
        "CT_REQUEST_TIMEOUT_MS": "<YOUR_CT_REQUEST_TIMEOUT_MS>",
        "CT_MAX_PAGE_SIZE": "<YOUR_CT_MAX_PAGE_SIZE>",
        "MCP_LOG_LEVEL": "<YOUR_MCP_LOG_LEVEL>"
      }
    }
  }
}

Let your agent find its tools

Find servers like clinicaltrialsgov-mcp-server from your agent. Add Koskamo once to search the index for endpoints, access requirements, and client setup. Public discovery needs no key.