Connects MSSQL and PostgreSQL databases to MCP clients with schema tools, query controls, PII masking, and local or WebSocket operation.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
One-click editor setup isnβt available for this listing yet β we donβt have a confirmed install command, and weβd rather show nothing than point your editor at the wrong package or host. Follow the projectβs own setup instructions, linked above.
Inspect callable tools, capabilities, and parameters exposed to AI agents by Coremcp.
query_databaseArbitrary SQL against a configured source.
list_tablesTables with column counts, primary keys, foreign key counts.
describe_tableFull schema for one table: columns, types, nullability, PKs, FKs, column comments.
list_viewsAll views with column definitions.
list_proceduresStored procedures with parameter names, types, modes (`IN`/`OUT`/`INOUT`), and a ready-to-copy example call.
execute_procedureCalls a stored procedure with named parameters. **Only enabled when `readonly: false`.**
The corebasehq/coremcp MCP server connects MCP clients to configured SQL data sources. Its stable database adapters are MSSQL and PostgreSQL, with a dummy adapter available for testing without a real database. The project is distributed as a Go binary that includes its database drivers.
Agents can run SQL against a named source and inspect database structure. Schema discovery includes tables, columns, primary and foreign key information, views, and stored procedures. Procedure metadata includes parameter names, types, modes, and an example call. Calling a stored procedure is available only when the source explicitly sets readonly: false.
Local operation uses the serve command and stdio transport. This is intended for desktop MCP clients and other local processes. Remote operation uses connect, which opens an outbound WebSocket to a relay. Because the agent initiates the connection, the database host does not need to accept inbound connections; the README describes this mode for networks such as corporate VPCs and on-premise sites.
The corebasehq/coremcp MCP server applies security processing before and after database access. Its T-SQL-aware validation allows SELECT and WITH statements in read-only query mode and rejects disallowed statements, multiple statements, and several SQL Server features that could modify or expose data. A forced row limit caps result size, and regex-based masking can replace configured patterns such as email addresses, credit card numbers, and Turkish identity numbers in returned strings.
MSSQL sources can optionally use READ UNCOMMITTED behavior through no_lock. The normalize_turkish option supports selected legacy Turkish database encoding and comparison cases, including normalization of SQL string literals and correction of some mojibake in returned text.
Install options include a release binary, the Linux/macOS installer, Docker, or building from source with Go 1.23 or newer. A YAML file named coremcp.yaml is used by the local server. Each source requires a unique name, adapter type, and database connection string. MSSQL uses a sqlserver:// DSN; PostgreSQL uses a postgresql:// DSN.
The default source setting is read-only. Set readonly: false only when procedure execution is needed, and use a database account limited to the intended SELECT and EXECUTE permissions. Server settings also control logging, transport, port, row limits, PII masking, and custom masking patterns.
For remote mode, provide a relay WebSocket URL and authentication token to coremcp connect. An agent ID can be supplied for identification, and reconnect behavior can be configured with command-line flags.
The corebasehq/coremcp MCP server provides these database tools:
query_database runs SQL against a selected configured source.list_tables reports tables, column counts, primary keys, and foreign key counts.describe_table returns detailed column and constraint metadata, including comments.list_views returns views and their column definitions.list_procedures returns stored procedure parameters and example calls.execute_procedure invokes a procedure with named parameters when writes are enabled for that source.The remote relay protocol additionally supports SQL execution, cached schema retrieval, source listing, health checks, and configuration synchronization.
Firebird support is still in progress and currently returns a placeholder error. MySQL is listed as roadmap work, while HTTP transport, audit logging, and query-result caching are also not yet available. Query safeguards are intended as one security layer; the documentation recommends pairing them with least-privilege database roles rather than relying on validation alone. no_lock can produce dirty reads, so it should be used with that trade-off understood.
Factual signals from GitHub, npm, and our automated checks β not a rating.
No reviews yet β be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/corebasehq-coremcp)<a href="https://allmcps.com/mcp/corebasehq-coremcp"><img src="https://allmcps.com/api/badge/corebasehq-coremcp?style=directory" alt="Coremcp on AllMCPs" /></a>