Download the PHP package momodemo333/php-mcp-postgresql without Composer

On this page you can find all versions of the php package momodemo333/php-mcp-postgresql. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package php-mcp-postgresql

๐Ÿ˜ PHP MCP PostgreSQL Server

PHP MCP

PostgreSQL MCP Server for Claude Code - Secure and configurable PostgreSQL integration via Model Context Protocol.

๐ŸŽ‰ Version 1.0.0-beta: Core functionality complete! Production testing in progress.

๐Ÿš€ Features

๐Ÿ“ฆ Requirements

๐Ÿ”ง Installation

1. Clone the Repository

2. Install Dependencies

3. Configure Environment

โš™๏ธ Configuration

Environment Variables

Variable Description Default
PGSQL_HOST PostgreSQL server host localhost
PGSQL_PORT PostgreSQL server port 5432
PGSQL_USER Database username postgres
PGSQL_PASS Database password (empty)
PGSQL_DB Database name (optional for multi-db) (empty)
ALLOW_INSERT_OPERATION Enable INSERT queries false
ALLOW_UPDATE_OPERATION Enable UPDATE queries false
ALLOW_DELETE_OPERATION Enable DELETE queries false
QUERY_TIMEOUT Query timeout in seconds 30
MAX_RESULTS Maximum rows returned 1000
CONNECTION_POOL_SIZE Max concurrent connections 5
LOG_LEVEL Logging level (DEBUG/INFO/WARN/ERROR) INFO

Claude Code Configuration

Add to your Claude Code settings (claude-code-settings.json):

See examples/ for more configuration examples.

๐Ÿ› ๏ธ Available Tools

Database Management

Query Execution

๐Ÿงช Testing

Quick Test

Docker Test Environment

The project includes a complete Docker test environment:

๐Ÿ”’ Security

Default Security Features

Best Practices

  1. Never enable write operations in production unless absolutely necessary
  2. Use read-only database users when possible
  3. Set appropriate MAX_RESULTS and QUERY_TIMEOUT values
  4. Review logs regularly for suspicious activity
  5. Keep the server updated with security patches

๐ŸŽ† PostgreSQL-Specific Features

JSONB Support

Array Support

Advanced Features

๐Ÿ“ Documentation

๐Ÿค Contributing

Contributions are welcome! Please:

  1. Fork the repository
  2. Create a feature branch
  3. Write tests for new functionality
  4. Ensure all tests pass
  5. Submit a pull request

๐Ÿ“„ License

MIT License - see LICENSE file for details.

๐Ÿ™ Acknowledgments

๐Ÿ’ฌ Support


Version: 1.0.0-beta
Status: Production Testing
Last Updated: January 2025


All versions of php-mcp-postgresql with dependencies

PHP Build Version
Package Version
Requires php Version >=8.1
php-mcp/server Version ^3.3
ext-pdo Version *
ext-pdo_pgsql Version *
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package momodemo333/php-mcp-postgresql contains the following files

Loading the files please wait ....