开始使用免费开始使用

Connect Claude to Your Records Database

Your organization stores decades of climate records in a SQLite database. Instead of running queries yourself and pasting the results back to Claude, you can connect the database directly via MCP, then Claude can query it on its own whenever it needs data to answer a question or verify an analysis. The MCP server has already been registered for this exercise.

The database is at /home/repl/climate-analysis/climate.db.

本练习是课程的一部分

Claude Code 101

查看课程

练习说明

  • Start Claude Code with claude.
  • Run /mcp to see the connected servers and confirm the database server is active.
  • Ask Claude to list all tables in the connected database.
  • When done, type /exit to exit Claude Code.

动手互动练习

通过我们的互动练习之一,将理论转化为实践

开始练习