Install
Add to ~/Library/Application Support/Claude/claude_desktop_config.json
Windows / Linux path
%APPDATA%\Claude\claude_desktop_config.json~/.config/Claude/claude_desktop_config.json{
"mcpServers": {
"io-github-nikships-gemdex": {
"command": "npx",
"args": [
"-y",
"gemdex-mcp"
],
"env": {
"GEMINI_API_KEY": "<YOUR_VALUE>",
"GEMDEX_MODE": "local",
"LANCEDB_PATH": "~/.gemdex/lance",
"EMBEDDING_MODEL": "gemini-embedding-2",
"GEMDEX_REMOTE_URL": "<VALUE>",
"GEMDEX_REMOTE_TOKEN": "<YOUR_VALUE>",
"GEMDEX_REMOTE_NAME": "<VALUE>",
"GEMDEX_TRUST_RANKING": "false",
"HYBRID_MODE": "true",
"GEMINI_BASE_URL": "<VALUE>",
"GEMDEX_SERVE_PORT": "0",
"GEMDEX_STATS_PATH": "~/.gemdex/stats.json",
"EMBEDDING_DIMENSION": "<VALUE>",
"GEMDEX_SIMILAR_ON_SAVE": "true",
"GEMDEX_SIMILAR_THRESHOLD": "0.90"
}
}
}
}
Restart Claude Desktop to activate the new server.
Add to .cursor/mcp.json (project) or ~/.cursor/mcp.json (global)
Windows / Linux path
.cursor\mcp.json (project) or %USERPROFILE%\.cursor\mcp.json (global).cursor/mcp.json (project) or ~/.cursor/mcp.json (global){
"mcpServers": {
"io-github-nikships-gemdex": {
"command": "npx",
"args": [
"-y",
"gemdex-mcp"
],
"env": {
"GEMINI_API_KEY": "<YOUR_VALUE>",
"GEMDEX_MODE": "local",
"LANCEDB_PATH": "~/.gemdex/lance",
"EMBEDDING_MODEL": "gemini-embedding-2",
"GEMDEX_REMOTE_URL": "<VALUE>",
"GEMDEX_REMOTE_TOKEN": "<YOUR_VALUE>",
"GEMDEX_REMOTE_NAME": "<VALUE>",
"GEMDEX_TRUST_RANKING": "false",
"HYBRID_MODE": "true",
"GEMINI_BASE_URL": "<VALUE>",
"GEMDEX_SERVE_PORT": "0",
"GEMDEX_STATS_PATH": "~/.gemdex/stats.json",
"EMBEDDING_DIMENSION": "<VALUE>",
"GEMDEX_SIMILAR_ON_SAVE": "true",
"GEMDEX_SIMILAR_THRESHOLD": "0.90"
}
}
}
}
Cursor usually picks up config changes automatically; if the server does not appear, reload the window.
Add to .mcp.json (project) or ~/.claude.json (global)
Windows / Linux path
.mcp.json (project) or %USERPROFILE%\.claude.json (global).mcp.json (project) or ~/.claude.json (global){
"mcpServers": {
"io-github-nikships-gemdex": {
"command": "npx",
"args": [
"-y",
"gemdex-mcp"
],
"env": {
"GEMINI_API_KEY": "<YOUR_VALUE>",
"GEMDEX_MODE": "local",
"LANCEDB_PATH": "~/.gemdex/lance",
"EMBEDDING_MODEL": "gemini-embedding-2",
"GEMDEX_REMOTE_URL": "<VALUE>",
"GEMDEX_REMOTE_TOKEN": "<YOUR_VALUE>",
"GEMDEX_REMOTE_NAME": "<VALUE>",
"GEMDEX_TRUST_RANKING": "false",
"HYBRID_MODE": "true",
"GEMINI_BASE_URL": "<VALUE>",
"GEMDEX_SERVE_PORT": "0",
"GEMDEX_STATS_PATH": "~/.gemdex/stats.json",
"EMBEDDING_DIMENSION": "<VALUE>",
"GEMDEX_SIMILAR_ON_SAVE": "true",
"GEMDEX_SIMILAR_THRESHOLD": "0.90"
}
}
}
}
The server will be available in the next Claude Code session.
Add to .vscode/mcp.json
Windows / Linux path
.vscode\mcp.json.vscode/mcp.json{
"servers": {
"io-github-nikships-gemdex": {
"command": "npx",
"args": [
"-y",
"gemdex-mcp"
],
"env": {
"GEMINI_API_KEY": "<YOUR_VALUE>",
"GEMDEX_MODE": "local",
"LANCEDB_PATH": "~/.gemdex/lance",
"EMBEDDING_MODEL": "gemini-embedding-2",
"GEMDEX_REMOTE_URL": "<VALUE>",
"GEMDEX_REMOTE_TOKEN": "<YOUR_VALUE>",
"GEMDEX_REMOTE_NAME": "<VALUE>",
"GEMDEX_TRUST_RANKING": "false",
"HYBRID_MODE": "true",
"GEMINI_BASE_URL": "<VALUE>",
"GEMDEX_SERVE_PORT": "0",
"GEMDEX_STATS_PATH": "~/.gemdex/stats.json",
"EMBEDDING_DIMENSION": "<VALUE>",
"GEMDEX_SIMILAR_ON_SAVE": "true",
"GEMDEX_SIMILAR_THRESHOLD": "0.90"
}
}
}
}
Reload the VS Code window to activate.
Add to ~/.codeium/windsurf/mcp_config.json
Windows / Linux path
%USERPROFILE%\.codeium\windsurf\mcp_config.json~/.codeium/windsurf/mcp_config.json{
"mcpServers": {
"io-github-nikships-gemdex": {
"command": "npx",
"args": [
"-y",
"gemdex-mcp"
],
"env": {
"GEMINI_API_KEY": "<YOUR_VALUE>",
"GEMDEX_MODE": "local",
"LANCEDB_PATH": "~/.gemdex/lance",
"EMBEDDING_MODEL": "gemini-embedding-2",
"GEMDEX_REMOTE_URL": "<VALUE>",
"GEMDEX_REMOTE_TOKEN": "<YOUR_VALUE>",
"GEMDEX_REMOTE_NAME": "<VALUE>",
"GEMDEX_TRUST_RANKING": "false",
"HYBRID_MODE": "true",
"GEMINI_BASE_URL": "<VALUE>",
"GEMDEX_SERVE_PORT": "0",
"GEMDEX_STATS_PATH": "~/.gemdex/stats.json",
"EMBEDDING_DIMENSION": "<VALUE>",
"GEMDEX_SIMILAR_ON_SAVE": "true",
"GEMDEX_SIMILAR_THRESHOLD": "0.90"
}
}
}
}
Restart Windsurf (or refresh its MCP servers panel) to activate the new server.
Windsurf Next uses ~/.codeium/windsurf-next/mcp_config.json. Devin Desktop (the Windsurf rebrand) uses ~/.config/devin/mcp_config.json and imports the Windsurf file.
Add to ~/Library/Application Support/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json
Windows / Linux path
%APPDATA%\Code\User\globalStorage\saoudrizwan.claude-dev\settings\cline_mcp_settings.json~/.config/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json{
"mcpServers": {
"io-github-nikships-gemdex": {
"command": "npx",
"args": [
"-y",
"gemdex-mcp"
],
"env": {
"GEMINI_API_KEY": "<YOUR_VALUE>",
"GEMDEX_MODE": "local",
"LANCEDB_PATH": "~/.gemdex/lance",
"EMBEDDING_MODEL": "gemini-embedding-2",
"GEMDEX_REMOTE_URL": "<VALUE>",
"GEMDEX_REMOTE_TOKEN": "<YOUR_VALUE>",
"GEMDEX_REMOTE_NAME": "<VALUE>",
"GEMDEX_TRUST_RANKING": "false",
"HYBRID_MODE": "true",
"GEMINI_BASE_URL": "<VALUE>",
"GEMDEX_SERVE_PORT": "0",
"GEMDEX_STATS_PATH": "~/.gemdex/stats.json",
"EMBEDDING_DIMENSION": "<VALUE>",
"GEMDEX_SIMILAR_ON_SAVE": "true",
"GEMDEX_SIMILAR_THRESHOLD": "0.90"
}
}
}
}
Cline reloads cline_mcp_settings.json automatically; if the server does not appear, reload the VS Code window.
Open it from Cline's MCP Servers panel → Configure. Roo Code uses a different file and format.
Configuration
Environment variables this server reads. Secrets stay on your machine.
| Name | Required | Description |
|---|---|---|
| GEMINI_API_KEY secret | Yes | Google AI Studio API key (needed to embed on save/recall/update). Set to 'local' to use MLX text embeddings. |
| GEMDEX_MODE | No | Select the embedded 'local' backend or a configured 'remote' backend Default: local |
| LANCEDB_PATH | No | Filesystem path for the embedded memory store Default: ~/.gemdex/lance |
| EMBEDDING_MODEL | No | Override Gemini embedding model Default: gemini-embedding-2 |
| GEMDEX_REMOTE_URL | No | Gemdex Server root URL |
| GEMDEX_REMOTE_TOKEN secret | No | Gemdex Server bearer token |
| GEMDEX_REMOTE_NAME | No | Human-readable name for the remote server |
| GEMDEX_TRUST_RANKING | No | Set 'true' to re-rank recall results by track record Default: false |
| HYBRID_MODE | No | Disable to use dense-only recall Default: true |
| GEMINI_BASE_URL | No | Custom Gemini endpoint |
| GEMDEX_SERVE_PORT | No | Default port for gemdex serve Default: 0 |
| GEMDEX_STATS_PATH | No | Where the report_outcome feedback ledger is stored Default: ~/.gemdex/stats.json |
| EMBEDDING_DIMENSION | No | Force Matryoshka-resized dimension (256/768/1536/3072) |
| GEMDEX_SIMILAR_ON_SAVE | No | Set 'false' to disable save-time similar-memory detection Default: true |
| GEMDEX_SIMILAR_THRESHOLD | No | Centroid cosine-similarity bar for save-time detection Default: 0.90 |