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.
Bài tập này là một phần của khóa học
Claude Code 101
Hướng dẫn bài tập
- Start Claude Code with
claude. - Run
/mcpto see the connected servers and confirm the database server is active. - Ask Claude to list all tables in the connected database.
- When done, type
/exitto exit Claude Code.
Bài tập tương tác thực hành
Biến lý thuyết thành hành động với một trong các bài tập tương tác của chúng tôi
Bắt đầu bài tập