mcpField
B
buffette-code-mcp-server

buffette-code-mcp-server

ローカル
github.com/BuffettCode開発ツール234 週間前に更新

buffette-code-mcp-server について

buffette-code-mcp-serverは、Buffett Code APIを介して日本と米国の企業データをMCPクライアントに提供します。企業・株式・会計期間の情報に加え、市場反応、株主、事業セグメント、類似企業などを取得できます。

主な機能

  1. 01日本企業データの取得
  2. 02米国企業・株式データの取得
  3. 03日次・四半期データの検索
  4. 04市場反応と統計情報の確認
  5. 05株主・セグメント・業績予想修正の取得
  6. 06類似企業の検索

活用シーン

  1. 01日本または米国企業の情報確認
  2. 02企業の日次・四半期データの確認
  3. 03市場反応や株式統計の分析
  4. 04株主・セグメント・業績予想データの調査

MCP 対応

日本と米国の市場を対象に、Buffett Code APIのデータをツール経由でMCPクライアントに提供します。

設定

ローカルサーバーの設定はどのクライアントでも共通です。コピーしてクライアントの MCP 設定ファイルに貼り付けてください。

mcp.json · 共通設定
{
"mcpServers": {
"buffett-code": {
"command": "npx",
"args": [
"-y",
"tsx"
]
}
}
}
起動コマンドnpx -y tsx

ローカルサーバーにはマシン上の実行環境(Node.js 18 以上など)が必要です。設定ファイルの場所はクライアントごとに異なります。

パッケージ
npmtsx

ツール

ツール一覧はまだ取得されていません

ローカルサーバーのツールはマシン上で起動して初めて取得できます。メンテナーはまだツール一覧を提供していません。

README(原文)English

プロジェクトの README より

この README の日本語訳はまだありません。以下は英語の原文です。日本語の紹介はページ上部をご覧ください。

buffett-code-mcp-server

A MCP(Model Context Protocol) server that accesses to buffett-code API.

Features

Available tools:

Japan Market
  • buffett_code_get_jp_company - Get Japanese company information from Buffett Code
  • buffett_code_get_jp_company_daily - Get daily Japanese company information from Buffett Code for a specific date
  • buffett_code_get_jp_company_quarterly - Get quarterly Japanese company information from Buffett Code for a specific year and quarter
  • buffett_code_get_jp_company_daily_market_reaction - Get the daily market reaction for a JP company as both text and stock price change rate. Currently available only for stocks with sufficient data, on or near quarterly or annual earnings announcement dates.
  • buffett_code_get_jp_company_weekly_stats - Get weekly statistics calculated for the company or stock, mainly including stock price related statistics.
  • buffett_code_get_jp_company_monthly_stats - Get monthly statistics calculated for the company or stock, mainly including stock price related statistics.
  • buffett_code_get_jp_company_monthly_kpis - Get monthly KPIs for a JP company.
  • buffett_code_get_jp_company_quarterly_long_text_content - Get processed long-form text content from Buffett Code, based on HTML text found in securities reports or quarterly reports.
  • buffett_code_get_jp_company_quarterly_major_shareholders - Get major shareholders information for a company or stock as listed in its securities report or quarterly report.
  • buffett_code_get_jp_company_quarterly_segments - Get segment information as disclosed in a company or stock’s securities report or quarterly report.
  • buffett_code_get_jp_company_annually_guidance_revisions - Get a list of earnings guidance revisions by fiscal year for the company or stock.
  • buffett_code_get_jp_company_similarities - Get a list of companies similar to the specified company.
US Market
  • buffett_code_get_us_company - Get company information from Buffett Code
  • buffett_code_get_us_company_daily - Get daily company information from Buffett Code for a specific date
  • buffett_code_get_us_company_quarterly - Get quarterly company information from Buffett Code for a specific year and quarter
  • buffett_code_get_us_company_stocks - Get company stock information from Buffett Code for a specific stock
  • buffett_code_get_us_company_stocks_daily - Get daily company stock information from Buffett Code for a specific stock and date
  • buffett_code_get_us_company_stocks_quarterly - Get quarterly company stock information from Buffett Code for a specific stock and year-quarter

Quick Start

Installation

TBD

Usage
Start the MCP server

TBD

Edit MCP configuration json for your client:
...
    "buffett-code": {
      "command": "node",
      "args": [
        "/path/to/buffett-code-mcp-server/dist/index.js"
      ],
      "env": {
      }
    },
...
Claude Desktopで動かすとき

tsxが必要でしたので、インストールしました。

npm install -D tsx

claude_desktop_config.jsonを書き換えます。

{
  "mcpServers": {
      "buffett-code": {
        "command": "npx",
        "args": [
          "tsx",
          "/Users/shogoakiyama/Desktop/buffett-code-mcp-server/src/index.ts"
        ],
        "env": {
        }
      }
  }
}

Development

Available Scripts
  • npm run dev - Start the server in development mode with hot reloading
  • npm run build - Build the project for production
  • npm run start - Start the production server
  • npm run lint - Run linting checks (ESLint and Prettier)
  • npm run fix - Automatically fix linting issues
  • npm run examples - Run the example scripts
Contributing
  1. Fork the repository
  2. Create your feature branch
  3. Run tests and linting: npm run lint
  4. Commit your changes
  5. Push to the branch
  6. Create a Pull Request

コメント

MCP は初めてですか?

プロトコルの概要から最初のサーバーの導入まで、よくある疑問にまとめて答えます。

AI アプリケーションが外部のツールやデータソースに統一的な方法で接続するためのオープンなプロトコルです。クライアントはモデルとの対話を担い、MCP サーバーはツール・リソース・プロンプトテンプレートを提供します。標準メッセージでやり取りするため、1 つのサーバーを複数のクライアントで再利用できます。