{"_id":"@ayushmantripathy/db-mcp","_rev":"4-f0e827bac8ff2852793d8f91d840b6f0","name":"@ayushmantripathy/db-mcp","dist-tags":{"latest":"0.0.4"},"versions":{"0.0.1":{"name":"@ayushmantripathy/db-mcp","version":"0.0.1","_id":"@ayushmantripathy/db-mcp@0.0.1","maintainers":[{"name":"ayushmantripathy","email":"ayushmantripathy2004@gmail.com"}],"dist":{"shasum":"b068e8d7d0e9b0fa8e4510ef724175b7abe9d036","tarball":"https://registry.npmjs.org/@ayushmantripathy/db-mcp/-/db-mcp-0.0.1.tgz","fileCount":7,"integrity":"sha512-Ip02W8a7Q+9wr9AT0r5Z6JfcKUpaxNPnQvii1PUk6xM1b3GDMSLD8FRDphzcKqupdDVFTIbQA6IvtGJudEMykA==","signatures":[{"sig":"MEUCIQCu5E/sJAd6dM/ObIHc2TpnqXN7HNeO4Kmcjx6tQVn5SwIgISpOL3ASlwtSr/NnLTj5DxgUpMCg0eduPa6wP/i/WVg=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":5905},"type":"module","module":"dist/index.js","gitHead":"ca619396ac4eb83937e4c2c1b1079b37858a72dc","scripts":{"build":"bun build src/index.ts --target bun --minify --outdir dist"},"_npmUser":{"name":"ayushmantripathy","email":"ayushmantripathy2004@gmail.com"},"_npmVersion":"11.12.1","description":"To install dependencies:","directories":{},"_nodeVersion":"25.9.0","dependencies":{"zod":"^4.4.3","@cfworker/json-schema":"^4.1.1","@modelcontextprotocol/server":"^2.0.0-alpha.2"},"_hasShrinkwrap":false,"devDependencies":{"@types/bun":"latest"},"peerDependencies":{"typescript":"^5"},"_npmOperationalInternal":{"tmp":"tmp/db-mcp_0.0.1_1782492472348_0.9709163438596717","host":"s3://npm-registry-packages-npm-production"}},"0.0.2":{"name":"@ayushmantripathy/db-mcp","version":"0.0.2","_id":"@ayushmantripathy/db-mcp@0.0.2","maintainers":[{"name":"ayushmantripathy","email":"ayushmantripathy2004@gmail.com"}],"bin":{"db-mcp":"dist/index.js"},"dist":{"shasum":"79589f6b37ed6a50468f83ce15f740ad4ce2a126","tarball":"https://registry.npmjs.org/@ayushmantripathy/db-mcp/-/db-mcp-0.0.2.tgz","fileCount":8,"integrity":"sha512-Isgrm7Hs8qEPihr2FqWo5oIlEKDaMK4cz480nvOPtSdtUgx5O4TmOwFfWa0prU9j9HI7NGtlfRQxDL/KpkAYsg==","signatures":[{"sig":"MEUCIEwKU3DRW3fN00QECALMomeBCMaVsr0xwHttP8uLMajIAiEAkMuo5g1bKMW6EAr2NhI2ixKyqc5BeP8uyQ2aRx5sinw=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":286245},"type":"module","gitHead":"ca619396ac4eb83937e4c2c1b1079b37858a72dc","scripts":{"build":"bun build src/index.ts --target bun --minify --outdir dist"},"_npmUser":{"name":"ayushmantripathy","email":"ayushmantripathy2004@gmail.com"},"_npmVersion":"11.12.1","description":"To install dependencies:","directories":{},"_nodeVersion":"25.9.0","dependencies":{"zod":"^4.4.3","@cfworker/json-schema":"^4.1.1","@modelcontextprotocol/server":"^2.0.0-alpha.2"},"_hasShrinkwrap":false,"devDependencies":{"@types/bun":"latest"},"peerDependencies":{"typescript":"^5"},"_npmOperationalInternal":{"tmp":"tmp/db-mcp_0.0.2_1782493295016_0.6962874004763657","host":"s3://npm-registry-packages-npm-production"}},"0.0.3":{"name":"@ayushmantripathy/db-mcp","version":"0.0.3","_id":"@ayushmantripathy/db-mcp@0.0.3","maintainers":[{"name":"ayushmantripathy","email":"ayushmantripathy2004@gmail.com"}],"bin":{"db-mcp":"dist/index.js"},"dist":{"shasum":"99749dfd6dc08725ff9ac97a228ff08b8709f1bc","tarball":"https://registry.npmjs.org/@ayushmantripathy/db-mcp/-/db-mcp-0.0.3.tgz","fileCount":8,"integrity":"sha512-jRjHLlL68ofe9Fx/9+J2dV5KGoDkIpORyff7V4nPZ3sVOnCrKMfQpBKd7AWI++A7ehoKWR7DUHK8XYBiDeHq1Q==","signatures":[{"sig":"MEUCICHbb8FKnO3c5v1vdWFQ1bbkQeANTIhfCqBOu8FZo5SBAiEArOCGiVJUbpyNmbCRU+0h9Kwr4z0vPCkKKdKQrJCYFqg=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":286314},"main":"./src/index.ts","type":"module","gitHead":"ca619396ac4eb83937e4c2c1b1079b37858a72dc","scripts":{"build":"bun build src/index.ts --target bun --minify --outdir dist"},"_npmUser":{"name":"ayushmantripathy","email":"ayushmantripathy2004@gmail.com"},"_npmVersion":"11.12.1","description":"To install dependencies:","directories":{},"_nodeVersion":"25.9.0","dependencies":{"zod":"^4.4.3","@cfworker/json-schema":"^4.1.1","@modelcontextprotocol/server":"^2.0.0-alpha.2"},"_hasShrinkwrap":false,"devDependencies":{"@types/bun":"latest"},"peerDependencies":{"typescript":"^5"},"_npmOperationalInternal":{"tmp":"tmp/db-mcp_0.0.3_1782494430773_0.06430413869869045","host":"s3://npm-registry-packages-npm-production"}},"0.0.4":{"name":"@ayushmantripathy/db-mcp","version":"0.0.4","main":"./src/index.ts","bin":{"db-mcp":"dist/index.js"},"devDependencies":{"@types/bun":"latest"},"scripts":{"build":"bun build src/index.ts --target bun --minify --outdir dist"},"peerDependencies":{"typescript":"^5"},"type":"module","dependencies":{"@cfworker/json-schema":"^4.1.1","@modelcontextprotocol/server":"^2.0.0-alpha.2","zod":"^4.4.3"},"gitHead":"f0c3e4695fbb4058e211bc815fb6da9a4e89a4d7","_id":"@ayushmantripathy/db-mcp@0.0.4","description":"`db-mcp` is an MCP server that provides tools to interact with a Postgres database.  It connects to the database by reading the `DATABASE_URL` from the environment of the project it is run in. It allows you to list tables, read rows, and view table schema","_nodeVersion":"25.9.0","_npmVersion":"11.12.1","dist":{"integrity":"sha512-Gyr6smXTFELkA8PXzwEXaH5DtfI/SI98WRn2kg26mZO/phhhQpH46nN+Ce0tcu2bh+CAWgD8rRKvpr7Z6w280g==","shasum":"f405f251937c8e4122564190192177ad5e63320e","tarball":"https://registry.npmjs.org/@ayushmantripathy/db-mcp/-/db-mcp-0.0.4.tgz","fileCount":7,"unpackedSize":286949,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIBuabbTSxuRBWBLhiGXMtM6WP4map6peZfuJJFs/kb1sAiBohC0hwhzvI/MyRIRHWIyGZyGXrtWbVXQ9hFXdK98G+Q=="}]},"_npmUser":{"name":"ayushmantripathy","email":"ayushmantripathy2004@gmail.com"},"directories":{},"maintainers":[{"name":"ayushmantripathy","email":"ayushmantripathy2004@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/db-mcp_0.0.4_1782495669807_0.01978024678913548"},"_hasShrinkwrap":false}},"time":{"created":"2026-06-26T16:47:52.134Z","modified":"2026-06-26T17:41:10.121Z","0.0.1":"2026-06-26T16:47:52.499Z","0.0.2":"2026-06-26T17:01:35.248Z","0.0.3":"2026-06-26T17:20:30.918Z","0.0.4":"2026-06-26T17:41:10.007Z"},"description":"`db-mcp` is an MCP server that provides tools to interact with a Postgres database.  It connects to the database by reading the `DATABASE_URL` from the environment of the project it is run in. It allows you to list tables, read rows, and view table schema","maintainers":[{"name":"ayushmantripathy","email":"ayushmantripathy2004@gmail.com"}],"readme":"# db-mcp\n\n`db-mcp` is an MCP server that provides tools to interact with a Postgres database. \nIt connects to the database by reading the `DATABASE_URL` from the environment of the project it is run in.\nIt allows you to list tables, read rows, and view table schemas directly from your agents.\n\n## Tools\n\n- `list-tables`: Retrieve a list of all base tables present in the database.\n- `read-rows-of-table`: Read rows from a specific table, with optional conditions and limits.\n- `get-table-schema`: Retrieve the schema definition of any database table.\n\n## Installation\n\nThis project requires **Bun** to be installed on your system.\n\nThe server uses the `DATABASE_URL` environment variable to connect to your Postgres database.\n\nTo install and use this MCP server in your agents, add the following configuration to your `.agents/mcp_config.json` file:\n\n```json\n{\n  \"mcpServers\": {\n    \"db-mcp\": {\n      \"command\": \"bunx\",\n      \"args\": [\n        \"@ayushmantripathy/db-mcp\"\n      ],\n    }\n  }\n}\n```\n","readmeFilename":"README.md"}