mcpField
M
MCP Project

MCP Project

Local
github.com/lee926427Developer Tools0Updated 85w ago

About MCP Project

MCP Project is a Node.js MCP server and client example focused on querying and adding student records. Its README documents a PostgreSQL setup and a Claude Desktop connection, plus an inspector-based resource check.

Key features

  1. 01Query student records
  2. 02Add student records
  3. 03PostgreSQL setup instructions
  4. 04Claude Desktop configuration
  5. 05Resource inspection with MCP Inspector

Use cases

  1. 01Query student data through MCP
  2. 02Add student records
  3. 03Check server resources in MCP Inspector

MCP support

The README shows how to configure the server in Claude Desktop and connect with MCP Inspector. It describes listing resources and receiving a server response to a Hello World Message.

Configuration

Local server config is the same for every client. Copy it into your client’s MCP config file.

mcp.json · Universal config
{
"mcpServers": {
"lee926427": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e",
"POSTGRES_PASSWORD",
"postgres"
],
"env": {
"POSTGRES_PASSWORD": "<POSTGRES_PASSWORD>"
}
}
}
}
Run commanddocker run -i --rm -e POSTGRES_PASSWORD postgres
Environment variables to set
POSTGRES_PASSWORDSecret

Local servers need a runtime on your machine (e.g. Node.js 18+). Config file locations differ by client; see your client’s docs.

Packages
ocipostgres

Tools

No tool list yet

Local servers expose tools only once running on your machine, and the maintainer has not provided a tool list.

Details

From the project README

MCP Project

環境建置

  1. 下載 Node.js
  2. 下載 docker 然後執行以下命令
docker run -d --name postgres -p 5432:5432 -e POSTGRES_PASSWORD=admin postgres
  1. 建立 Server
npm install
npm run build
  1. 建立 claude_desktop_config.json
cd ~/Library/Application\ Support/Claude
touch claude_desktop_config.json
  1. 將以下內容貼至剛建立的檔案內
{
  "mcpServers": {
    "mcp-server": {
      "command": "node",
      "args": ["/absolute/path/to/your/hello-mcp/build/index.js"]
    }
  }
}
  1. 執行 MCP 檢查器
npm run inspector
  1. 打開瀏覽器輸入以下網址 http://localhost:5173 ,點擊 Connect 按鈕
  2. 右側會出現以下畫面再點選 List Resources,會列出先前ListResourcesRequestSchema 所提供的 Resources
  3. 點擊 Hello World Message, 右側會出現 Server 的回應

Comments

Markdown supported

New to MCP?

From what the protocol is to installing your first server, these answers cover most first questions.

An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.