GL

girishkumardv/live-nse-bse-mcp

Developer tools

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る

18 stars 8 forks 品質 72 トレンド 10MIT

MCPとは インドの株式交換データを配信するサーバー。 MCP サーバーに最新の市場ニュース、ipos、トップパフォーマンス在庫、MFs、ETF などを入手してください.

概要

このサーバーは、IndianAPI を搭載したモデルコンテキストプロトコル (MCP) を介して、インド証券取引所 (BSE & NSE) からライブ市場データへのアクセスを提供します。 - Python 3.8 + - pip (Python パッケージインストーラ) - : https://indianapi.in/ でサインアップし、ストックマーケット API のキーを取得する : このパッケージはPyPIにはまだ公開されていません。 ソースのインストールは、今すぐご利用ください。 パッケージをインストールしないことを好む場合: : パッケージはPyPIにはまだないので、モジュールの実行(python -m ise mcp.server)を使うか、コンソールスクリプトのソースからインストールして動作するようにします。 1. : - [https://indianapi.in/ - 無料のアカウントにサインアップ - 株式市場APIセクションに移動 - APIキーを取得する購読 インストール後、サーバーを複数の方法で実行できます。 : PyPI (ise-mcp-server) のコンソールスクリプトは利用できません。 代わりにモジュールの実行またはバッチスクリプトを使用します.

概要(AI 翻訳)

このサーバーは、IndianAPI を搭載したモデルコンテキストプロトコル (MCP) を介して、インド証券取引所 (BSE & NSE) からライブ市場データへのアクセスを提供します。

すぐにスタート

前提条件

インストール

**注記: このパッケージはまだPyPIに公開されていません。 ソースのインストールは、今すぐご利用ください。

Option 1: ソースからクイックインストール (推奨)

####Option 2:開発インストール

Option 3: 手動実行 (インストールなし)

パッケージをインストールしないことを好む場合:

重要:パッケージがまだPyPIにないので、モジュールの実行(python -m ise_mcp.server)を使うか、コンソールスクリプトのソースからインストールして動作する。

設定

1.APIキーの取得:

  • 訪問 [[T2]
  • 無料アカウントに登録
  • 株式市場APIセクションに移動
  • APIキーを取得する購読

2.環境変数の設定:

使用法

###HTTPサーバーモード(Cursor、VSCode、DifyなどのWebクライアント向け)

インストール後、サーバーを複数の方法で実行できます

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。

README

以下は原文 README の抜粋です。原文を見る。

Indian Stock Exchange MCP Server

This server provides access to live market data from Indian Stock Exchanges (BSE & NSE) through the Model Context Protocol (MCP), powered by IndianAPI.

🚀 Quick Start

Prerequisites

  • Python 3.8+
  • pip (Python package installer)
  • API Key from IndianAPI: Sign up at https://indianapi.in/ and obtain an API key for the Stock Market API

Installation

Note: This package is not yet published to PyPI. Please use source installation for now.

git clone https://github.com/GirishKumarDV/Live-NSE-BSE-MCP.git
cd Live-NSE-BSE-MCP
pip install -e .

Option 2: Development Installation

git clone https://github.com/GirishKumarDV/Live-NSE-BSE-MCP.git
cd Live-NSE-BSE-MCP
pip install -r requirements.txt
pip install -e .

Option 3: Manual Execution (No Installation)

If you prefer not to install the package:

git clone https://github.com/GirishKumarDV/Live-NSE-BSE-MCP.git
cd Live-NSE-BSE-MCP
pip install -r requirements.txt
# Run directly with: python -m ise_mcp.server

Important: Since the package isn’t on PyPI yet, use module execution (python -m ise_mcp.server) or install from source for the console scripts to work.

Configuration

  1. Get your API key:

    • Visit https://indianapi.in/
    • Sign up for a free account
    • Navigate to the Stock Market API section
    • Subscribe to get your API key
  2. Configure environment variables:

    # Copy the example environment file
    cp env.example .env
    
    # Edit .env and add your IndianAPI key
    # ISE_API_KEY=your_indianapi_key_here
    

Usage

HTTP Server Mode (for web clients like Cursor, VSCode, Dify)

After installation, you can run the server in several ways:

Method 1: Module Execution (Recommended)

# From the project root directory
python -m ise_mcp.server

Method 2: Using Batch Script (Windows)

# Use the provided batch script (note the .\ prefix for PowerShell)
.\ise-mcp-server.bat

# Or with environment variables
$env:ISE_HTTP_PORT=9000; .\ise-mcp-server.bat

Method 3: Development Mode

# If not installed, run as module from parent directory
cd ..
python -m ise_mcp.server

Note: Console scripts from PyPI (ise-mcp-server) are not available yet. Use module execution or the batch script instead.

The server will start on http://localhost:8000 by default.

Stdio Mode (for direct MCP clients like Claude Desktop)

Method 1: Module Execution (Recommended)

# From the project root directory
python -m ise_mcp.stdio_server

Method 2: Using Batch Script (Windows)

# Use the existing batch script (note the .\ prefix for PowerShell)
.\ise-mcp-stdio.bat
GitHub で README 全文を見る

インストール

This server does not publish a one-line install command.

Open the repository installation guide MCP 初心者?mcpskill.org のガイドから始めましょう →

設定

{ "mcpServers": { "ise-mcp": { "command": "C:\\path\\to\\your\\project\\venv\\Scripts\\python.exe", "args": ["-m", "ise_mcp.stdio_server"], "cwd": "C:\\path\\to\\your\\project", "env": { "ISE_API_KEY": "your_indianapi_key_here" } } } }