From 3708f5a61e15e9090de78debd3597c242b0a322a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B9=98=E9=A3=8E?= Date: Wed, 3 Dec 2025 16:54:21 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E6=B6=88=E6=81=AF=E5=90=8C?= =?UTF-8?q?=E6=AD=A5=E5=A4=84=E7=90=86=E9=80=BB=E8=BE=91=EF=BC=8C=E6=8F=90?= =?UTF-8?q?=E5=8D=87=E7=B3=BB=E7=BB=9F=E6=80=A7=E8=83=BD=E5=92=8C=E7=A8=B3?= =?UTF-8?q?=E5=AE=9A=E6=80=A7=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Moncter/MCP/mcp.json | 11 +++++++++++ Moncter/MCP/package.json | 5 +++++ Moncter/MCP/数据库账户密码.md | 15 +++++++++++++++ 3 files changed, 31 insertions(+) create mode 100644 Moncter/MCP/mcp.json create mode 100644 Moncter/MCP/package.json create mode 100644 Moncter/MCP/数据库账户密码.md diff --git a/Moncter/MCP/mcp.json b/Moncter/MCP/mcp.json new file mode 100644 index 00000000..2decb6d2 --- /dev/null +++ b/Moncter/MCP/mcp.json @@ -0,0 +1,11 @@ +{ + "mcpServers": { + "MongoDB": { + "command": "npx", + "args": ["-y", "mongodb-mcp-server@latest", "--readOnly"], + "env": { + "MDB_MCP_CONNECTION_STRING": "mongodb://ckb:123456@192.168.1.106:27017/ckb" + } + } + } + } \ No newline at end of file diff --git a/Moncter/MCP/package.json b/Moncter/MCP/package.json new file mode 100644 index 00000000..46c9d7c3 --- /dev/null +++ b/Moncter/MCP/package.json @@ -0,0 +1,5 @@ +{ + "dependencies": { + "mongodb-mcp-server": "^1.2.0" + } +} diff --git a/Moncter/MCP/数据库账户密码.md b/Moncter/MCP/数据库账户密码.md new file mode 100644 index 00000000..6d14bc26 --- /dev/null +++ b/Moncter/MCP/数据库账户密码.md @@ -0,0 +1,15 @@ +# 账户密码 +``` +HOST 192.168.1.106 +PORT 27017 +ACCOUNT:ckb +DBNAME:ckb +PASSWROD:123456 +``` + +================== +# 环境准备 +需要安装一个全局环境否则无法运行 +node版本为22.12.0 + +npm i mongodb-mcp-server -g \ No newline at end of file