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-olk-architecture-pattern-mcp": {
"command": "docker",
"args": [
"run",
"-i",
"-e",
"GENERATOR_API_KEY=<YOUR_VALUE>",
"-e",
"GENERATOR_PROVIDER=<YOUR_VALUE>",
"-e",
"GENERATOR_MODEL=<YOUR_VALUE>",
"-e",
"GENERATOR_BASE_URL=<YOUR_VALUE>",
"-e",
"PATTERN_DIRECTORY=<YOUR_VALUE>",
"-e",
"EMBEDDER_PROVIDER=<YOUR_VALUE>",
"-e",
"EMBEDDER_BASE_URL=<YOUR_VALUE>",
"-e",
"EMBEDDER_API_KEY=<YOUR_VALUE>",
"-e",
"RERANKER_BASE_URL=<YOUR_VALUE>",
"-e",
"CONFIG_PATH=<YOUR_VALUE>",
"-e",
"EMBEDDER_MODEL=<YOUR_VALUE>",
"-e",
"RETRIEVAL_MODE=<YOUR_VALUE>",
"-e",
"RETRIEVAL_BM25_TOP_K=<YOUR_VALUE>",
"-e",
"GENERATOR_TEMPERATURE=<YOUR_VALUE>",
"-e",
"RETRIEVAL_DENSE_TOP_K=<YOUR_VALUE>",
"-e",
"RETRIEVAL_TOP_K_PATTERNS=<YOUR_VALUE>",
"-e",
"RETRIEVAL_MIN_QUALITY_SCORE=<YOUR_VALUE>",
"docker.io/olkowa/architecture-pattern-mcp:1.1.3"
]
}
}
}
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-olk-architecture-pattern-mcp": {
"command": "docker",
"args": [
"run",
"-i",
"-e",
"GENERATOR_API_KEY=<YOUR_VALUE>",
"-e",
"GENERATOR_PROVIDER=<YOUR_VALUE>",
"-e",
"GENERATOR_MODEL=<YOUR_VALUE>",
"-e",
"GENERATOR_BASE_URL=<YOUR_VALUE>",
"-e",
"PATTERN_DIRECTORY=<YOUR_VALUE>",
"-e",
"EMBEDDER_PROVIDER=<YOUR_VALUE>",
"-e",
"EMBEDDER_BASE_URL=<YOUR_VALUE>",
"-e",
"EMBEDDER_API_KEY=<YOUR_VALUE>",
"-e",
"RERANKER_BASE_URL=<YOUR_VALUE>",
"-e",
"CONFIG_PATH=<YOUR_VALUE>",
"-e",
"EMBEDDER_MODEL=<YOUR_VALUE>",
"-e",
"RETRIEVAL_MODE=<YOUR_VALUE>",
"-e",
"RETRIEVAL_BM25_TOP_K=<YOUR_VALUE>",
"-e",
"GENERATOR_TEMPERATURE=<YOUR_VALUE>",
"-e",
"RETRIEVAL_DENSE_TOP_K=<YOUR_VALUE>",
"-e",
"RETRIEVAL_TOP_K_PATTERNS=<YOUR_VALUE>",
"-e",
"RETRIEVAL_MIN_QUALITY_SCORE=<YOUR_VALUE>",
"docker.io/olkowa/architecture-pattern-mcp:1.1.3"
]
}
}
}
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-olk-architecture-pattern-mcp": {
"command": "docker",
"args": [
"run",
"-i",
"-e",
"GENERATOR_API_KEY=<YOUR_VALUE>",
"-e",
"GENERATOR_PROVIDER=<YOUR_VALUE>",
"-e",
"GENERATOR_MODEL=<YOUR_VALUE>",
"-e",
"GENERATOR_BASE_URL=<YOUR_VALUE>",
"-e",
"PATTERN_DIRECTORY=<YOUR_VALUE>",
"-e",
"EMBEDDER_PROVIDER=<YOUR_VALUE>",
"-e",
"EMBEDDER_BASE_URL=<YOUR_VALUE>",
"-e",
"EMBEDDER_API_KEY=<YOUR_VALUE>",
"-e",
"RERANKER_BASE_URL=<YOUR_VALUE>",
"-e",
"CONFIG_PATH=<YOUR_VALUE>",
"-e",
"EMBEDDER_MODEL=<YOUR_VALUE>",
"-e",
"RETRIEVAL_MODE=<YOUR_VALUE>",
"-e",
"RETRIEVAL_BM25_TOP_K=<YOUR_VALUE>",
"-e",
"GENERATOR_TEMPERATURE=<YOUR_VALUE>",
"-e",
"RETRIEVAL_DENSE_TOP_K=<YOUR_VALUE>",
"-e",
"RETRIEVAL_TOP_K_PATTERNS=<YOUR_VALUE>",
"-e",
"RETRIEVAL_MIN_QUALITY_SCORE=<YOUR_VALUE>",
"docker.io/olkowa/architecture-pattern-mcp:1.1.3"
]
}
}
}
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-olk-architecture-pattern-mcp": {
"command": "docker",
"args": [
"run",
"-i",
"-e",
"GENERATOR_API_KEY=<YOUR_VALUE>",
"-e",
"GENERATOR_PROVIDER=<YOUR_VALUE>",
"-e",
"GENERATOR_MODEL=<YOUR_VALUE>",
"-e",
"GENERATOR_BASE_URL=<YOUR_VALUE>",
"-e",
"PATTERN_DIRECTORY=<YOUR_VALUE>",
"-e",
"EMBEDDER_PROVIDER=<YOUR_VALUE>",
"-e",
"EMBEDDER_BASE_URL=<YOUR_VALUE>",
"-e",
"EMBEDDER_API_KEY=<YOUR_VALUE>",
"-e",
"RERANKER_BASE_URL=<YOUR_VALUE>",
"-e",
"CONFIG_PATH=<YOUR_VALUE>",
"-e",
"EMBEDDER_MODEL=<YOUR_VALUE>",
"-e",
"RETRIEVAL_MODE=<YOUR_VALUE>",
"-e",
"RETRIEVAL_BM25_TOP_K=<YOUR_VALUE>",
"-e",
"GENERATOR_TEMPERATURE=<YOUR_VALUE>",
"-e",
"RETRIEVAL_DENSE_TOP_K=<YOUR_VALUE>",
"-e",
"RETRIEVAL_TOP_K_PATTERNS=<YOUR_VALUE>",
"-e",
"RETRIEVAL_MIN_QUALITY_SCORE=<YOUR_VALUE>",
"docker.io/olkowa/architecture-pattern-mcp:1.1.3"
]
}
}
}
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-olk-architecture-pattern-mcp": {
"command": "docker",
"args": [
"run",
"-i",
"-e",
"GENERATOR_API_KEY=<YOUR_VALUE>",
"-e",
"GENERATOR_PROVIDER=<YOUR_VALUE>",
"-e",
"GENERATOR_MODEL=<YOUR_VALUE>",
"-e",
"GENERATOR_BASE_URL=<YOUR_VALUE>",
"-e",
"PATTERN_DIRECTORY=<YOUR_VALUE>",
"-e",
"EMBEDDER_PROVIDER=<YOUR_VALUE>",
"-e",
"EMBEDDER_BASE_URL=<YOUR_VALUE>",
"-e",
"EMBEDDER_API_KEY=<YOUR_VALUE>",
"-e",
"RERANKER_BASE_URL=<YOUR_VALUE>",
"-e",
"CONFIG_PATH=<YOUR_VALUE>",
"-e",
"EMBEDDER_MODEL=<YOUR_VALUE>",
"-e",
"RETRIEVAL_MODE=<YOUR_VALUE>",
"-e",
"RETRIEVAL_BM25_TOP_K=<YOUR_VALUE>",
"-e",
"GENERATOR_TEMPERATURE=<YOUR_VALUE>",
"-e",
"RETRIEVAL_DENSE_TOP_K=<YOUR_VALUE>",
"-e",
"RETRIEVAL_TOP_K_PATTERNS=<YOUR_VALUE>",
"-e",
"RETRIEVAL_MIN_QUALITY_SCORE=<YOUR_VALUE>",
"docker.io/olkowa/architecture-pattern-mcp:1.1.3"
]
}
}
}
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-olk-architecture-pattern-mcp": {
"command": "docker",
"args": [
"run",
"-i",
"-e",
"GENERATOR_API_KEY=<YOUR_VALUE>",
"-e",
"GENERATOR_PROVIDER=<YOUR_VALUE>",
"-e",
"GENERATOR_MODEL=<YOUR_VALUE>",
"-e",
"GENERATOR_BASE_URL=<YOUR_VALUE>",
"-e",
"PATTERN_DIRECTORY=<YOUR_VALUE>",
"-e",
"EMBEDDER_PROVIDER=<YOUR_VALUE>",
"-e",
"EMBEDDER_BASE_URL=<YOUR_VALUE>",
"-e",
"EMBEDDER_API_KEY=<YOUR_VALUE>",
"-e",
"RERANKER_BASE_URL=<YOUR_VALUE>",
"-e",
"CONFIG_PATH=<YOUR_VALUE>",
"-e",
"EMBEDDER_MODEL=<YOUR_VALUE>",
"-e",
"RETRIEVAL_MODE=<YOUR_VALUE>",
"-e",
"RETRIEVAL_BM25_TOP_K=<YOUR_VALUE>",
"-e",
"GENERATOR_TEMPERATURE=<YOUR_VALUE>",
"-e",
"RETRIEVAL_DENSE_TOP_K=<YOUR_VALUE>",
"-e",
"RETRIEVAL_TOP_K_PATTERNS=<YOUR_VALUE>",
"-e",
"RETRIEVAL_MIN_QUALITY_SCORE=<YOUR_VALUE>",
"docker.io/olkowa/architecture-pattern-mcp:1.1.3"
]
}
}
}
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 |
|---|---|---|
| GENERATOR_API_KEY secret | Yes | API key for the LLM provider |
| GENERATOR_PROVIDER | No | LLM provider (openai, minimax, anthropic, etc.) Default: openai |
| GENERATOR_MODEL | No | Model name Default: gpt-4o-mini |
| GENERATOR_BASE_URL | No | API base URL Default: https://api.openai.com/v1 |
| PATTERN_DIRECTORY | No | Directory for pattern JSON files Default: ~/.config/architecture-pattern-mcp/pattern |
| EMBEDDER_PROVIDER | No | Embedder provider (tei or openai) Default: tei |
| EMBEDDER_BASE_URL | Yes | TEI server URL Default: http://127.0.0.1:8080/v1 |
| EMBEDDER_API_KEY secret | No | TEI API key (not needed for local TEI) Default: not-needed |
| RERANKER_BASE_URL | Yes | Required: pattern retrieval runs a mandatory TEI cross-encoder rerank. On the Docker host use http://host.docker.internal:8080; on a shared Docker network use http://pattern-tei-rerank:8080. |
| CONFIG_PATH | No | Path to config file Default: ~/.config/architecture-pattern-mcp/config.json |
| EMBEDDER_MODEL | No | TEI model name or path Default: data/qwen3-embedding-0.6b |
| RETRIEVAL_MODE | No | Retrieval fusion mode Default: reciprocal_rerank |
| RETRIEVAL_BM25_TOP_K | No | BM25 retrieval count (0 = full corpus, no limit) Default: 0 |
| GENERATOR_TEMPERATURE | No | LLM sampling temperature Default: 0.7 |
| RETRIEVAL_DENSE_TOP_K | No | Dense vector retrieval count (0 = full corpus, no limit) Default: 0 |
| RETRIEVAL_TOP_K_PATTERNS | No | Number of top patterns to retrieve Default: 5 |
| RETRIEVAL_MIN_QUALITY_SCORE | No | Early-stop quality threshold Default: 50.0 |