Skip to main content
SHARC MCP server authenticates using your SHARC API key.

Required variable

VariableDescriptionExample
SHARC_API_KEYAPI key from your SHARC plansk_mcp_e364ff9...

Set your API key

The recommended way is to set SHARC_API_KEY directly in your MCP client’s server configuration. Each client has its own format — see the per-client guides for the exact one-command install: Generic stdio MCP example:
{
  "mcpServers": {
    "sharc": {
      "command": "npx",
      "args": ["-y", "@sharc-code/mcp@latest"],
      "env": {
        "SHARC_API_KEY": "sk_mcp_..."
      }
    }
  }
}

Troubleshooting

Invalid API key

Ensure your key:
  • Starts with sk_
  • Is correctly copied with no extra spaces
  • Is still active in your account

Key not detected

If the MCP tools are not available:
  1. Restart your AI assistant after config changes.
  2. Confirm your config JSON is valid.
  3. Confirm SHARC_API_KEY is set in the correct MCP server entry.