How to Connect Semgrep Remote MCP to ChatGPT
Add Semgrep's remote MCP server to ChatGPT in about a minute.
Step-by-step
- Open ChatGPT connector settingsSettings โ Connectors โ enable Developer Mode โ Add custom connector.
- Paste the endpointURL:
https://mcp.semgrep.ai/mcp. No authentication needed โ Semgrep MCP is public. - VerifyVerify in the browser: paste
https://mcp.semgrep.ai/mcpinto remotemcp.net/inspector and run initialize + tools/list.
Troubleshooting OAuth / 401
- A
401 Unauthorizedon first connect is normal โ the endpoint is OAuth-protected; let ChatGPT finish the browser consent flow. - If the consent window never opens, remove and re-add the server, then retry.
- Check the exact challenge at our OAuth debugger.
- Run the live endpoint through the online inspector to see the raw JSON-RPC exchange.
Legacy SSE endpoint
Or add to ~/.cursor/mcp.json:
{
"mcpServers": {
"semgrep": {
"url": "https://mcp.semgrep.ai/mcp"
}
}
}claude mcp add --transport http semgrep https://mcp.semgrep.ai/mcp
Or add to .vscode/mcp.json:
{
"servers": {
"semgrep": {
"type": "http",
"url": "https://mcp.semgrep.ai/mcp"
}
}
}- Open Settings โ Connectors (Integrations) โ Add Custom Connector.
- Paste the endpoint URL:
https://mcp.semgrep.ai/mcp - No authentication needed โ tools are available immediately.
Bridge the remote endpoint into stdio with mcp-remote in claude_desktop_config.json:
{
"mcpServers": {
"semgrep": {
"command": "npx",
"args": [
"-y",
"mcp-remote",
"https://mcp.semgrep.ai/mcp"
]
}
}
}Add to ~/.codeium/windsurf/mcp_config.json:
{
"mcpServers": {
"semgrep": {
"serverUrl": "https://mcp.semgrep.ai/mcp"
}
}
}Tools exposed by Semgrep MCP (3)
| Tool | Safety | Description | Parameters |
|---|---|---|---|
| semgrep_scan | ๐ข Read | Scan a code snippet with Semgrep rules and return findings. | code*: stringlanguage: string |
| security_check | ๐ข Read | Run a security-focused check over provided code files. | codeFiles*: arrayconfig: string |
| get_abstract_syntax_tree | ๐ข Read | Return the abstract syntax tree Semgrep builds for a code snippet. | code*: stringlanguage: string |
Connect Semgrep MCP to another client
Other servers for ChatGPT
GitHub's official remote MCP server hosted at api.githubcopilot.com. Gives AI agents first-party access to repositories, issues, pull requests and code search.
Notion's official hosted MCP server. Agents can search your workspace, read and create pages, and query databases over Streamable HTTP or SSE.
Linear's official remote MCP server. Agents can search, create and update issues and query your team's workflow over Streamable HTTP or SSE.
Figma's official remote MCP server. Agents can pull design context, variables, Code Connect mappings and screenshots from your Figma files.
Stripe's official remote MCP server at mcp.stripe.com. Agents can query customers, payment intents and subscriptions and invoke Stripe API operations with OAuth.
Cloudflare's free, authless documentation MCP server. Agents can search the full Cloudflare docs corpus โ no account or token required.