-
Install Meshagent
-
Sign up and Authenticate
Follow the Meshagent Getting Started Guide to log in and authenticate with your credentials. -
Start the MCP Server in a Room
- This command launches a Meshagent Room named
test
running a test MCP server agent. - Environment Variables:
POSTGRES_URL
: The URL to your PostgreSQL instance (e.g.postgresql://host.docker.internal:5432/mydb
)MESHAGENT_PORT
: Listening port for the MCP server (default: 8001)
- Note: Rooms will close if inactive, cleaning up all agents and tools.
- This command launches a Meshagent Room named
-
Start a Chatbot with Postgres Toolkit in the Room
- Launches a chatbot in the same room that can use the Postgres toolkit.
- Multiple toolkits can be used by a single agent.
- A joining link to the room is given in the command output.
-
Interact with the tools
- Open the room link in your browser and send messages to the
mcp-postgres
agent to use the MCP server tools directly.
- Open the room link in your browser and send messages to the
Project Level Deployment
For persistent, production setups, create project-level services so that your MCP server and chatbot are available in every Meshagent project room—no manual room joining needed, no separate local hosting.-
Deploy MCP Server as a Persistent Project-Level Service
-
Deploy Chatbot as a Persistent Project-Level Service
Tools Available
PostgreSQL readonly (Archived) MCP Server
Connect with read-only access to PostgreSQL databases. This server enables LLMs to inspect database schemas and execute read-only queries.Available Tools
Tools provided by this Server | Short Description |
---|---|
query | Run a read-only SQL query |
Tool Details
Tool:query
Run a read-only SQL query
Parameters:
Name | Type | Description |
---|---|---|
sql | string | optional |