From graphql-lsp
GraphQL LSP server provides code intelligence for GraphQL — diagnostics, autocomplete, go-to-definition, and hover info for .gql, .graphql, and .graphqls files.
Ships in graphql-lsp. Installing the plugin adds it to Claude Code.
This LSP server requires graphql-lsp to be installed on your system. Make sure it's available in your PATH before enabling.
Copy this JSON into your .lsp.json to enable this server
Add to your .lsp.json or plugin.json:
{
"lspServers": {
"graphql": {
"command": "graphql-lsp",
"extensionToLanguage": {
".gql": "graphql",
".graphql": "graphql",
".graphqls": "graphql"
},
"args": [
"server",
"-m",
"stream"
]
}
}
}File extensions mapped to language identifiers
Server configuration and transport parameters
graphql-lspstdioCommand-line arguments passed to the server process
Initialization options and workspace settings
Initialization Options:
{}Settings:
{}7-day visitors to each server page
npx claudepluginhub piebald-ai/claude-code-lsps --plugin graphql-lsp