Connect an assistant
Add the LearnSQL server to your AI app once, then sign in. These steps work for any app that supports remote (HTTP) MCP servers.
The server address
Locked to the pqlab database
You came from a page that is specific to pqlab. This address only knows that database.
https://learnsql.cpetoday.com/mcp/db/pqlab
For every database instead, use the general address.
Opening this address in a browser brings you to this page. It is meant to be added to an app, not visited.
Sign-in
Your app opens a sign-in page. Use the LearnSQL username and password from your class or CPE Today course materials. They go to this site only, never to the AI app. See how the sign-in works.
Claude (claude.ai and Claude Desktop)
- Open Settings and then Connectors.
- Choose Add custom connector, name it LearnSQL, and paste the server address.
- Click Connect, sign in on the page that opens, and approve.
- Start a chat and ask: "List the LearnSQL databases."
Custom connectors need a plan that supports them; if you do not see the option, use one of the other apps below.
Claude Code
claude mcp add --transport http learnsql https://learnsql.cpetoday.com/mcp
Then run /mcp inside Claude Code, choose learnsql, and sign in.
VS Code
Add this to .vscode/mcp.json in your project, then use the Start link that appears above the server in the file.
{
"servers": {
"learnsql": { "type": "http", "url": "https://learnsql.cpetoday.com/mcp" }
}
}Cursor and other apps
In Cursor, add a server to .cursor/mcp.json:
{
"mcpServers": {
"learnsql": { "url": "https://learnsql.cpetoday.com/mcp" }
}
}Menu names change between versions. Look for add a remote or HTTP MCP server and paste the address. An app that only supports local (stdio) servers cannot connect to this one.
Check that it works
Ask: "Use LearnSQL to list the databases, then show me the first five rows of the Customers table in northwind." You should see the assistant call
list_databases and sample_rows, and then a small table. If it fails, see troubleshooting.