mcp - kdevkr/mambo-box GitHub Wiki
μ€νΈλ‘ν½μ΄ 2024λ 11μμ μκ°ν Model Context Protocol(MCP)λ μμ΄μ ν± AIλ₯Ό μν νΈμΆμ μ¬μ©λλ μ¬μ€ μ νμ€.
- Install Claude Desktop for MCP Client
- Install uv for uvx
C:\Users\Mambo\AppData\Roaming\Claude\calude_desktop_config.json
- nvm μ μ¬μ©νμ¬ λ Έλ λ²μ μ κ΄λ¦¬νλ κ²½μ° Claude Desktop μμ μ¬μ©νλ λ Έλ λ²μ μ΄ λ€λ₯Έ λ¬Έμ κ° λ°μν¨.
-
servers#64λ₯Ό μ°Έκ³ νλ©΄
/usr/local/bin/npx-for-mcp
λ₯Ό λ§λ€μ΄μ nvm μΌλ‘ μ€μΉλ λ Έλ λ²μ μ μ¬μ©νλλ‘ μ€μ κ°λ₯
{
"mcpServers": {
"filesystem": {
"command": "npx-for-mcp",
"args": [
"-y",
"@modelcontextprotocol/server-filesystem",
"/Users/USERNAME/Desktop",
"/Users/USERNAME/Documents",
"/Users/USERNAME/Downloads"
]
},
}
}
npx-for-mcp λ₯Ό μ¬μ©νλλ° server-redis μμλ κ·Έλλ‘ μ€λ₯κ° λ°μνμ,
/Users/USERNAME/.nvm/versions/node/v22.14.0/bin/redis: line 1: import: command not found
/Users/USERNAME/.nvm/versions/node/v22.14.0/bin/redis: line 2: import: command not found
/Users/USERNAME/.nvm/versions/node/v22.14.0/bin/redis: line 3: import: command not found
/Users/USERNAME/.nvm/versions/node/v22.14.0/bin/redis: line 4: import: command not found
/Users/USERNAME/.nvm/versions/node/v22.14.0/bin/redis: line 5: import: command not found
/Users/USERNAME/.nvm/versions/node/v22.14.0/bin/redis: line 6: //: is a directory
/Users/USERNAME/.nvm/versions/node/v22.14.0/bin/redis: line 7: const: command not found
/Users/USERNAME/.nvm/versions/node/v22.14.0/bin/redis: line 7: redis://localhost:6379: No such file or directory
/Users/USERNAME/.nvm/versions/node/v22.14.0/bin/redis: line 8: const: command not found
/Users/USERNAME/.nvm/versions/node/v22.14.0/bin/redis: line 9: const: command not found
/Users/USERNAME/.nvm/versions/node/v22.14.0/bin/redis: line 9: //: is a directory
/Users/USERNAME/.nvm/versions/node/v22.14.0/bin/redis: line 10: const: command not found
/Users/USERNAME/.nvm/versions/node/v22.14.0/bin/redis: line 10: //: is a directory
/Users/USERNAME/.nvm/versions/node/v22.14.0/bin/redis: line 11: //: is a directory
/Users/USERNAME/.nvm/versions/node/v22.14.0/bin/redis: line 12: syntax error near unexpected token `('
/Users/USERNAME/.nvm/versions/node/v22.14.0/bin/redis: line 12: `const redisClient = createClient({'
{
"mcpServers": {
"redis": {
"command": "/Users/USERNAME/.nvm/versions/node/v22.14.0/bin/node",
"args": [
"/Users/USERNAME/.nvm/versions/node/v22.14.0/bin/redis",
"redis://localhost:6379"
]
}
}
}
@modelcontextprotocol/server-gdriveμ κ²½μ°λ
ls: /.nvm/versions/node: No such file or directory
ERROR: You must supply a command.
Execute binaries from npm packages.
npx [options] <command>[@version] [command-arg]...
npx [options] [-p|--package <package>]... <command> [command-arg]...
npx [options] -c '<command-string>'
npx --shell-auto-fallback [shell]
Options:
--package, -p Package to be installed. [string]
--cache Location of the npm cache. [string]
--always-spawn Always spawn a child process to execute the command.
[boolean]
--no-install Skip installation if a package is missing. [boolean]
--userconfig Path to user npmrc. [string]
--call, -c Execute string as if inside `npm run-script`. [string]
--shell, -s Shell to execute the command with, if any.
[string] [default: false]
--shell-auto-fallback Generate shell code to use npx as the "command not
found" fallback.
[string] [choices: "", "bash", "fish", "zsh"]
--ignore-existing Ignores existing binaries in $PATH, or in the local
project. This forces npx to do a temporary install and
use the latest version. [boolean]
--quiet, -q Suppress output from npx itself. Subcommands will not
be affected. [boolean]
--npm npm binary to use for internal operations.
[string] [default:
"/Users/USERNAME/.nvm/versions/node/v12.22.12/lib/node_modules/npm/bin/npm-cli.js"]
--node-arg, -n Extra node argument when calling a node binary.[string]
--version, -v Show version number [boolean]
--help, -h Show help [boolean]
For the full documentation, see the manual page for npx(1).
{
"mcpServers": {
"gdrive": {
"command": "/Users/USERNAME/.nvm/versions/node/v22.14.0/bin/node",
"args": [
"/Users/USERNAME/.nvm/versions/node/v22.14.0/bin/mcp-server-gdrive"
],
"env": {
"GDRIVE_CREDENTIALS_PATH": "/Users/USERNAME/servers/.gdrive-server-credentials.json"
}
}
}
}
2025-04-09T04:52:11.180Z [sequential-thinking] [info] Initializing server...
2025-04-09T04:52:11.216Z [sequential-thinking] [info] Server started and connected successfully
2025-04-09T04:52:11.217Z [sequential-thinking] [info] Message from client: {"method":"initialize","params":{"protocolVersion":"2024-11-05","capabilities":{},"clientInfo":{"name":"claude-ai","version":"0.1.0"}},"jsonrpc":"2.0","id":0}
ERROR: You must supply a command.
Execute binaries from npm packages.
npx [options] <command>[@version] [command-arg]...
npx [options] [-p|--package <package>]... <command> [command-arg]...
npx [options] -c '<command-string>'
npx --shell-auto-fallback [shell]
Options:
--package, -p Package to be installed. [string]
--cache Location of the npm cache. [string]
--always-spawn Always spawn a child process to execute the command.
[boolean]
--no-install Skip installation if a package is missing. [boolean]
--userconfig Path to user npmrc. [string]
--call, -c Execute string as if inside `npm run-script`. [string]
--shell, -s Shell to execute the command with, if any.
[string] [default: false]
--shell-auto-fallback Generate shell code to use npx as the "command not
found" fallback.
[string] [choices: "", "bash", "fish", "zsh"]
--ignore-existing Ignores existing binaries in $PATH, or in the local
project. This forces npx to do a temporary install and
use the latest version. [boolean]
--quiet, -q Suppress output from npx itself. Subcommands will not
be affected. [boolean]
--npm npm binary to use for internal operations.
[string] [default:
"/Users/USERNAME/.nvm/versions/node/v12.22.12/lib/node_modules/npm/bin/npm-cli.js"]
--node-arg, -n Extra node argument when calling a node binary.[string]
--version, -v Show version number [boolean]
--help, -h Show help [boolean]
For the full documentation, see the manual page for npx(1).
2025-04-09T04:52:11.741Z [sequential-thinking] [info] Server transport closed
2025-04-09T04:52:11.741Z [sequential-thinking] [info] Client transport closed
2025-04-09T04:52:11.742Z [sequential-thinking] [info] Server transport closed unexpectedly, this is likely due to the process exiting early. If you are developing this MCP server you can add output to stderr (i.e. `console.error('...')` in JavaScript, `print('...', file=sys.stderr)` in python) and it will appear in this log.
2025-04-09T04:52:11.742Z [sequential-thinking] [error] Server disconnected. For troubleshooting guidance, please visit our [debugging documentation](https://modelcontextprotocol.io/docs/tools/debugging) {"context":"connection"}
Model Context Protocol servers μ€ time, git, sqlite, fetch λ±μ Python MCP SDKλ‘ μμ±λμ΄μμ΄ uv ν¨ν€μ§ λ§€λμ κ° μ€μΉλμ΄μμ΄μΌ νλ€. λ§₯ νκ²½μ μ€μΉλ uvμ κ²½λ‘κ° /Users/USERNAME/.local/bin
μ μλ€λ©΄ Claude Desktop μμ λ°λΌλ³΄μ§ λͺ»ν μ μμΌλ―λ‘ μ 체 κ²½λ‘λ₯Ό μ§μ ν΄μ£Όκ±°λ brew install uv
λ‘ μ€μΉν΄λ λλ€.
2025-04-09T04:55:27.164Z [time] [info] Initializing server...
2025-04-09T04:55:27.186Z [time] [error] spawn uvx ENOENT {"context":"connection","stack":"Error: spawn uvx ENOENT\n at ChildProcess._handle.onexit (node:internal/child_process:285:19)\n at onErrorNT (node:internal/child_process:483:16)\n at process.processTicksAndRejections (node:internal/process/task_queues:82:21)"}
2025-04-09T04:55:27.187Z [time] [error] spawn uvx ENOENT {"stack":"Error: spawn uvx ENOENT\n at ChildProcess._handle.onexit (node:internal/child_process:285:19)\n at onErrorNT (node:internal/child_process:483:16)\n at process.processTicksAndRejections (node:internal/process/task_queues:82:21)"}
2025-04-09T04:55:27.188Z [time] [info] Server transport closed
2025-04-09T04:55:27.188Z [time] [info] Client transport closed
2025-04-09T04:55:27.189Z [time] [info] Server transport closed unexpectedly, this is likely due to the process exiting early. If you are developing this MCP server you can add output to stderr (i.e. `console.error('...')` in JavaScript, `print('...', file=sys.stderr)` in python) and it will appear in this log.
2025-04-09T04:55:27.189Z [time] [error] Server disconnected. For troubleshooting guidance, please visit our [debugging documentation](https://modelcontextprotocol.io/docs/tools/debugging) {"context":"connection"}
{
"mcpServers": {
"time": {
"command": "/Users/USERNAME/.local/bin/uvx",
"args": ["mcp-server-time", "--local-timezone=Asia/Seoul"]
}
}
}
μ μ΄μμ²λΌ Fine-grained PATλ₯Ό μ¬μ©νλ κ²½μ° μ 체 μ‘μΈμ€ κΆνμ λΆμ¬ν΄λ μ‘°μ§ λ¦¬νμ§ν 리μ μ κ·Όν μ μμλ€. μλ μ΄λ―Έμ§μ κ°μ΄ μ‘°μ§μμ μ‘μΈμ€ ν ν° μ¬μ©μ λν κΆνμ μ νλ λΆλΆμ μλ μνμ΄λ€.