MCP · Model Context Protocol

Connect Share Alpha to your AI.

Ask Claude, Cursor, VS Code or any MCP-compatible assistant about NEPSE — live quotes, market breadth, top movers and price history — without leaving your chat.

https://sharealpha.com.np/mcp

Local development: http://localhost:4000/mcp

Quick start

Three steps to your first query.

Step 01

Copy the endpoint

Use https://sharealpha.com.np/mcp. It speaks stateless JSON-RPC over HTTP — no key, no session to manage.

Step 02

Add it to your client

Paste the config below into your assistant’s MCP settings and restart it.

Step 03

Ask a question

The client discovers the tools automatically. Try “What is NABIL trading at?”

Available tools

Five read-only market tools.

Every tool returns clean JSON, so the model can reason over it directly.

search_stocks

Discover

Find a ticker by symbol or company name. Returns matching symbols with latest price and change.

get_stock_quote

Quote

Latest price, OHLC, change, volume, turnover and 52-week range for one symbol.

get_market_summary

Overview

Market open/closed status, turnover and breadth summary, plus NEPSE index and sub-index levels.

get_top_movers

Screen

Rank stocks by gainers, losers, turnover or volume for the current session.

get_price_history

History

Daily OHLCV candles for a symbol, up to two years back, for trend and indicator questions.

Client setup

Pick your assistant.

Copy the config into the right file, restart the client, and the tools appear automatically.

Claude Desktop

Settings → Connectors → Add custom connector (newer builds), or claude_desktop_config.json

{
  "mcpServers": {
    "share-alpha": {
      "type": "http",
      "url": "https://sharealpha.com.np/mcp"
    }
  }
}

On builds with the Connectors UI, paste the endpoint URL there instead of editing the file.

Cursor

Project file: .cursor/mcp.json (or global MCP settings)

{
  "mcpServers": {
    "share-alpha": {
      "url": "https://sharealpha.com.np/mcp"
    }
  }
}

Open Cursor settings → MCP to confirm the server is connected and the five tools are listed.

VS Code (Copilot)

Workspace file: .vscode/mcp.json

{
  "servers": {
    "share-alpha": {
      "type": "http",
      "url": "https://sharealpha.com.np/mcp"
    }
  }
}

Run “MCP: List Servers” from the command palette to start and inspect the connection.

Cline / other clients

MCP Servers → Configure MCP Servers

{
  "mcpServers": {
    "share-alpha": {
      "type": "streamableHttp",
      "url": "https://sharealpha.com.np/mcp"
    }
  }
}

Any client that supports streamable HTTP transport can connect with the same URL.

Verify

Test the endpoint with curl.

A successful response lists every tool. If you see JSON-RPC, the server is live.

terminal
curl -s https://sharealpha.com.np/mcp \
  -H 'Content-Type: application/json' \
  -H 'Accept: application/json, text/event-stream' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}'

Try it

Things to ask your assistant.

“What is NABIL trading at today, and how does it compare with its 52-week high?”
“Which NEPSE stocks are the top five gainers right now?”
“Summarise the market: turnover, breadth and where the NEPSE index sits.”
“Show me the last 30 daily candles for NICA and describe the trend.”

Read-only and unauthenticated

  • • The server only reads public market data — it cannot place orders or touch accounts.
  • • No API key is required. Please keep request volume reasonable; responses are cached briefly.
  • • Data can be delayed and is provided for information only, not as investment advice.

Build something on top of NEPSE.

Use the MCP server with your own assistant, or explore the live signal hub in the app.