<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>daitasu</author_name>
  <author_url>https://blog.hatena.ne.jp/daitasu/</author_url>
  <blog_title>恐竜本舗</blog_title>
  <blog_url>https://blog.daitasu.work/</blog_url>
  <categories>
    <anon>mcp</anon>
    <anon>typescript</anon>
  </categories>
  <description>はじめに 仕事データ分析等で、データベースのスキーマを取得して各種のテーブルを調べたり、売上分析やKPI分析など色々な点でデータベースを参照することが多くある。 しばらくは、下記の公式なPostgreSQL MCP があったのでこちらを利用していた。 github.com しかし、気づいたらこちらがアーカイブされていて、利用しているsdk も古くて今後メンテもされなそうなので、いっそ勉強がてら自分で作ることにした。 github.com www.npmjs.com MCP の基本的な部分の振り返りも兼ねて書いてみる。 Model Context Protocol(MCP) の概観 Model …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.daitasu.work%2Fentry%2F2025%2F07%2F10%2F214638&quot; title=&quot;PostgreSQL MCP サーバを作った - 恐竜本舗&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url>https://cdn-ak.f.st-hatena.com/images/fotolife/d/daitasu/20250710/20250710214428.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2025-07-10 21:46:38</published>
  <title>PostgreSQL MCP サーバを作った</title>
  <type>rich</type>
  <url>https://blog.daitasu.work/entry/2025/07/10/214638</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
