Rice Stock Data MCP Server
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Rice Stock Data MCP ServerShow me the latest earnings for Microsoft"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Rice Stock Data MCP Server
A Model Context Protocol (MCP) server for accessing Rice Business Stock Market Data Portal through Claude Desktop.
Features
Natural language queries for stock market data
Access to comprehensive financial metrics and indicators
Rice University email verification for access control
Seamless integration with Claude Desktop
Related MCP server: Alpha Vantage MCP Server
Prerequisites
You must have Node.js installed on your computer to use this MCP server.
Download Node.js: Visit nodejs.org and install the LTS version
Verify installation: Open terminal/command prompt and run:
node --version npm --versionBoth commands should return version numbers.
Claude Desktop Configuration
Step 1: Get Your Access Token
Visit the Rice Business Stock Market Data Portal
Verify your Rice University email address
Copy your personal access token
Step 2: Configure Claude Desktop
Open Claude Desktop
Go to Settings → Developer → Edit Config
Add the following configuration to your
claude_desktop_config.json:
{
"mcpServers": {
"rice-stock-data": {
"command": "npx",
"args": ["@kerryback/rice-stock-data"],
"env": {
"USER_ACCESS_TOKEN": "your_actual_access_token_here",
"APP_URL": "https://your-actual-data-portal.rice-business.org"
}
}
}
}Replace
"your_actual_access_token_here"with your actual access token from Step 1 (keep the quotation marks)Save the configuration file
Restart Claude Desktop
Step 3: Using the MCP Server
Once configured, you can ask Claude questions about stock market data:
"Show me tech stocks with PE under 20"
"What are Apple's financial ratios?"
"List healthcare companies by market cap"
"Get the latest earnings data for Microsoft"
"Compare revenue growth across FAANG stocks"
Local Development
Installation
npm install
npm run buildRunning the MCP Server Locally
npm run start:mcpRunning the Web Server (for deployment)
npm startEnvironment Variables
USER_ACCESS_TOKEN- Your personal Rice Data Portal access token (required)APP_URL- Data portal base URL (default: https://data-portal-mcp.rice-business.org)PORT- Web server port (default: 8000, used for deployment only)
API Endpoints
The web server provides these endpoints (for deployment):
GET /- Server informationGET /health- Health check endpointPOST /chat- Query endpoint (requires token in request body)
Troubleshooting
"Authentication failed" error
Verify your access token is correct and hasn't expired
Ensure you've verified your Rice University email
"Rate limit exceeded" error
Wait a moment before making additional queries
The API has rate limiting to ensure fair usage
Claude Desktop doesn't show the MCP server
Make sure you've restarted Claude Desktop after configuration
Check that the configuration JSON is valid (no syntax errors)
Verify the package name is correct:
@kerryback/rice-stock-data
Support
For issues or questions about:
MCP Server: Open an issue in this repository
Data Portal Access: Contact Rice Business IT support
Stock Data: Refer to the Rice Business Stock Market Data Portal documentation
License
MIT
Available Tools
1 toolquery_dataA
Query Rice Stock Data Portal using natural language. Ask questions about stocks, financial metrics, sectors, or any market data.
| Name | Required | Description | Default |
|---|---|---|---|
| prompt | Yes | Natural language query about stock market data (e.g., 'Show me tech stocks with PE under 20', 'What are Apple's financial ratios?', 'List healthcare companies by market cap') |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
No annotations are provided, so the description must disclose behavior. It only mentions natural language querying and topics, but does not state whether it is read-only, what it returns, or any constraints. This leaves the agent without insight into side effects, permissions, or output format.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is a single sentence that front-loads the tool's purpose and elaborates briefly. No filler or redundancy.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Given the simple single-parameter tool, the description is adequate for basic selection but lacks details on return behavior, which is critical since no output schema exists. It does not explain what the agent can expect from the query response.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
The schema coverage is 100% with a well-described 'prompt' parameter including examples. The description adds context about allowed query topics but does not add new parameter-level details beyond the schema.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the tool queries the Rice Stock Data Portal using natural language, with explicit examples of query types (stocks, financial metrics, sectors). It uses a specific verb and resource, distinguishing it from generic tools despite no sibling tools.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description implies usage for natural language queries about stock data but does not explicitly state when not to use it or mention alternatives. Since there are no sibling tools, no exclusions are necessary, but it lacks explicit 'when to use' language.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
1 tool update
v1.0.10- First observed
query_data
TDQS
Scored across 1 tool
Only one tool exists, so there is no possibility of overlap or confusion. The tool's purpose is clear and singular.
The single tool name follows a clean verb_noun pattern (query_data), which is internally consistent and readable.
With just one tool, the server feels minimal. However, for a natural language query interface, a single comprehensive tool may be sufficient, placing it at the borderline of appropriateness.
The natural language query tool describes broad coverage of stocks, financial metrics, sectors, and market data, effectively addressing the entire domain without obvious dead ends.
Maintenance
Related MCP Connectors
9,900+ US equities, 64 years of prices, financials, technicals, and earnings. Ask in plain English.
Portfolio analytics + US-equity market research for AI clients. ChatGPT deep-research compat.
Provide AI assistants with real-time access to official SEC EDGAR filings and financial data. Enab…
Institutional financial data with SEC filing citations, for every AI agent. OAuth 2.1.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceEnables AI-powered natural language stock market queries with real-time data from Yahoo Finance and CSV fallback. Uses Google Gemini to interpret queries and automatically fetch stock prices, comparisons, and market summaries.-
- AlicenseCqualityDmaintenanceProvides access to real-time and historical stock market data through the Alpha Vantage API, enabling financial analysis and market data queries through natural language.10038 PyPI74Apache 2.0
- FlicenseNot gradedqualityDmaintenanceEnables querying Rice Business Stock Market Data Portal using natural language through Claude Desktop, allowing users to ask about financial ratios, stocks, and companies.-
- AlicenseNot gradedqualityDmaintenanceEnables querying of U.S. congressional stock trade data, including price history, recent trades, buy signals, stock activity, and politician activity, through natural language tools.1MIT