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-nizoka-pkinative-mcp": {
"command": "npx",
"args": [
"-y",
"pkinative-mcp"
],
"env": {
"PKINATIVE_MCP_OUTPUT_DIR": "<VALUE>",
"PKINATIVE_MCP_CACHE_DIR": "<VALUE>",
"PKINATIVE_MCP_PORT": "<VALUE>",
"PKINATIVE_MCP_HTTP_TOKEN": "<YOUR_VALUE>",
"PKINATIVE_MCP_PASSWORD": "<YOUR_VALUE>",
"PKINATIVE_MCP_AT": "<VALUE>",
"PKINATIVE_MCP_MAX_INPUT_BYTES": "67108864",
"PKINATIVE_MCP_MAX_KDF_ITERATIONS": "10000000",
"PKINATIVE_MCP_MAX_PATHS_EXPLORED": "1000"
}
}
}
}
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-nizoka-pkinative-mcp": {
"command": "npx",
"args": [
"-y",
"pkinative-mcp"
],
"env": {
"PKINATIVE_MCP_OUTPUT_DIR": "<VALUE>",
"PKINATIVE_MCP_CACHE_DIR": "<VALUE>",
"PKINATIVE_MCP_PORT": "<VALUE>",
"PKINATIVE_MCP_HTTP_TOKEN": "<YOUR_VALUE>",
"PKINATIVE_MCP_PASSWORD": "<YOUR_VALUE>",
"PKINATIVE_MCP_AT": "<VALUE>",
"PKINATIVE_MCP_MAX_INPUT_BYTES": "67108864",
"PKINATIVE_MCP_MAX_KDF_ITERATIONS": "10000000",
"PKINATIVE_MCP_MAX_PATHS_EXPLORED": "1000"
}
}
}
}
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-nizoka-pkinative-mcp": {
"command": "npx",
"args": [
"-y",
"pkinative-mcp"
],
"env": {
"PKINATIVE_MCP_OUTPUT_DIR": "<VALUE>",
"PKINATIVE_MCP_CACHE_DIR": "<VALUE>",
"PKINATIVE_MCP_PORT": "<VALUE>",
"PKINATIVE_MCP_HTTP_TOKEN": "<YOUR_VALUE>",
"PKINATIVE_MCP_PASSWORD": "<YOUR_VALUE>",
"PKINATIVE_MCP_AT": "<VALUE>",
"PKINATIVE_MCP_MAX_INPUT_BYTES": "67108864",
"PKINATIVE_MCP_MAX_KDF_ITERATIONS": "10000000",
"PKINATIVE_MCP_MAX_PATHS_EXPLORED": "1000"
}
}
}
}
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-nizoka-pkinative-mcp": {
"command": "npx",
"args": [
"-y",
"pkinative-mcp"
],
"env": {
"PKINATIVE_MCP_OUTPUT_DIR": "<VALUE>",
"PKINATIVE_MCP_CACHE_DIR": "<VALUE>",
"PKINATIVE_MCP_PORT": "<VALUE>",
"PKINATIVE_MCP_HTTP_TOKEN": "<YOUR_VALUE>",
"PKINATIVE_MCP_PASSWORD": "<YOUR_VALUE>",
"PKINATIVE_MCP_AT": "<VALUE>",
"PKINATIVE_MCP_MAX_INPUT_BYTES": "67108864",
"PKINATIVE_MCP_MAX_KDF_ITERATIONS": "10000000",
"PKINATIVE_MCP_MAX_PATHS_EXPLORED": "1000"
}
}
}
}
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-nizoka-pkinative-mcp": {
"command": "npx",
"args": [
"-y",
"pkinative-mcp"
],
"env": {
"PKINATIVE_MCP_OUTPUT_DIR": "<VALUE>",
"PKINATIVE_MCP_CACHE_DIR": "<VALUE>",
"PKINATIVE_MCP_PORT": "<VALUE>",
"PKINATIVE_MCP_HTTP_TOKEN": "<YOUR_VALUE>",
"PKINATIVE_MCP_PASSWORD": "<YOUR_VALUE>",
"PKINATIVE_MCP_AT": "<VALUE>",
"PKINATIVE_MCP_MAX_INPUT_BYTES": "67108864",
"PKINATIVE_MCP_MAX_KDF_ITERATIONS": "10000000",
"PKINATIVE_MCP_MAX_PATHS_EXPLORED": "1000"
}
}
}
}
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-nizoka-pkinative-mcp": {
"command": "npx",
"args": [
"-y",
"pkinative-mcp"
],
"env": {
"PKINATIVE_MCP_OUTPUT_DIR": "<VALUE>",
"PKINATIVE_MCP_CACHE_DIR": "<VALUE>",
"PKINATIVE_MCP_PORT": "<VALUE>",
"PKINATIVE_MCP_HTTP_TOKEN": "<YOUR_VALUE>",
"PKINATIVE_MCP_PASSWORD": "<YOUR_VALUE>",
"PKINATIVE_MCP_AT": "<VALUE>",
"PKINATIVE_MCP_MAX_INPUT_BYTES": "67108864",
"PKINATIVE_MCP_MAX_KDF_ITERATIONS": "10000000",
"PKINATIVE_MCP_MAX_PATHS_EXPLORED": "1000"
}
}
}
}
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 |
|---|---|---|
| PKINATIVE_MCP_OUTPUT_DIR | No | Absolute path of the one sandbox directory: every `path` input (PKI objects, content, keys) is read from it and `outputMode: 'file'` outputs are written under it (exclusive create — never overwritten). Unset ⇒ every tool works on inline PEM / base64 only. |
| PKINATIVE_MCP_CACHE_DIR | No | Opt-in content-addressed response cache (SHA-256 keyed, 1 h TTL, 256 MiB LRU, plaintext at rest). |
| PKINATIVE_MCP_PORT | No | When set to a valid port (1–65535), serves Streamable HTTP on http://127.0.0.1:<port>/mcp instead of stdio; any other value refuses to start. |
| PKINATIVE_MCP_HTTP_TOKEN secret | No | (secret) Opt-in bearer token for the HTTP transport (≥ 16 characters, no whitespace — a weaker value aborts startup). |
| PKINATIVE_MCP_PASSWORD secret | No | (secret) The operator-side password of the encrypted PKCS#8 key or PKCS#12 file the tools open. It counts as the password of every password-accepting tool. |
| PKINATIVE_MCP_AT | No | Pinned instant (ISO 8601, or epoch milliseconds) every omitted `at` / `notBefore` / `signingTime` falls back to, for reproducible verdicts and artefacts. Unset: the wall clock. |
| PKINATIVE_MCP_MAX_INPUT_BYTES | No | Operator ceiling for `limits.maxInputBytes` and the decoded size of one PKI object (the engine default). Integer ≥ 1024. Default: 67108864 |
| PKINATIVE_MCP_MAX_KDF_ITERATIONS | No | Operator ceiling for `limits.maxKdfIterations` and `limits.maxPkcs12KdfIterations` (the engine default): the CPU bound of a hostile PBES2 key or PKCS#12 file. Integer ≥ 1. Default: 10000000 |
| PKINATIVE_MCP_MAX_PATHS_EXPLORED | No | Operator ceiling for `limits.maxPathsExplored` (the engine default): the RFC 5280 §6 path-building work bound. Integer ≥ 1. Default: 1000 |