GnistAI GnistAI
Log in

S&P 500 Companies

S&P 500 companies — ticker, sector, sub-industry, headquarters, and CIK numbers.

Overview   |   MCP Docs   |   API Docs   |   OpenAPI   |   Playground   |   Tutorial   |   Toolkits   |   Home
status: healthy status status healthy healthy tools: 4 tools tools 4 4 Finance

Data source: Curated dataset (S&P Dow Jones Indices)

MCP MCP Protocol

Endpoint https://context.gnist.ai/mcp/sp500/
claude_desktop_config.json
{
  "mcpServers": {
    "gnist-sp500": {
      "url": "https://context.gnist.ai/mcp/sp500/",
      "headers": {
        "Gnist-API-Key": "YOUR_API_KEY"
      }
    }
  }
}
Shell
curl -X POST "https://context.gnist.ai/mcp/sp500/" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json, text/event-stream" \
  -H "Gnist-API-Key: YOUR_API_KEY" \
  -d '{"jsonrpc": "2.0", "method": "tools/call", "id": 1, "params": {"name": "get_sp500_company", "arguments": {"ticker": "example"}}}'

API REST API

API Root https://context.gnist.ai/rest/sp500/

4 endpoints available:

Shell
curl "https://context.gnist.ai/rest/sp500/get_sp500_company?ticker=example" \
  -H "Gnist-API-Key: YOUR_API_KEY"
Python
import httpx

resp = httpx.get(
    "https://context.gnist.ai/rest/sp500/get_sp500_company",
    headers={"Gnist-API-Key": "YOUR_API_KEY"},
    params={
        "ticker": "example"
},
)
print(resp.json())

OpenAPI Spec  ·  Full API Docs

CLI Command Line

Command gc sp500

CLI documentation will be available when the GnistAI SDK is published.

Install
pip install gnistai

Available Tools (4)

get_sp500_company
Get detailed information about an S&P 500 company by ticker symbol.
ParameterTypeRequiredDescription
tickerstringrequiredStock ticker symbol (e.g. AAPL, MSFT, GOOGL).
search_sp500_companies
Search the S&P 500 companies database.
ParameterTypeRequiredDescription
querystringrequiredSearch by company name or ticker symbol.
limitintegeroptionalMaximum results to return. (default: 20)
list_sp500_by_sector
List S&P 500 companies by GICS sector.
ParameterTypeRequiredDescription
sectorstringrequiredGICS sector (e.g. Information Technology, Health Care, Financials).
limitintegeroptionalMaximum results to return. (default: 50)
report_feedback
Report a bug, feature request, or general feedback for this data source.
ParameterTypeRequiredDescription
feedbackstringrequired
feedback_typestringoptional (default: "general")

Related