Compliant with the latest Model Context Protocol (MCP) specification.
@byul/mcp
is a stdio-based MCP server that proxies the Byul REST API. It exposes a small set of MCP tools and a resource that forward requests to Byul endpoints and return the original JSON response, plus a short article-count summary string.
- Node.js 18+
BYUL_API_KEY
environment variable
BYUL_API_KEY=byul_xxxxxxxxxxxxx npx -y @byul/mcp
Register this server as an MCP provider in your LLM client. The client will launch the server via stdio and communicate using JSON-RPC over stdin/stdout.
- Tools (summary; see
@docs
for the full spec)news_fetch
→ proxiesGET /news
with filters:limit
,cursor
,sinceId
,minImportance
,q
,symbol
,startDate
,endDate
- Resource (summary; see
@docs
for the full spec)byul://news{?limit,cursor,sinceId,minImportance,q,symbol,startDate,endDate}
Each response contains:
- A summary string like “Returned N articles”
- The original JSON payload from the Byul API
- Description: Fetch latest financial news
- Parameters:
limit
(number, optional) – number of articles (1-100)cursor
(string, optional) – pagination cursor from previous pagesinceId
(string, optional) – return articles created after this IDminImportance
(number, optional) – minimum importance (1-10)q
(string, optional) – search querysymbol
(string, optional) – stock symbol (e.g., AAPL)startDate
(string, optional) – ISO 8601 start timestamp (UTC)endDate
(string, optional) – ISO 8601 end timestamp (UTC)
- Example request:
Fetch top 5 news articles about AAPL from the past week
- Provide the API key via the
BYUL_API_KEY
environment variable only. Do not hardcode credentials in code or configs.
~/.cursor/mcp.json
or project .cursor/mcp.json
:
{
"mcpServers": {
"byul": {
"command": "npx",
"args": ["-y", "@byul/mcp"],
"env": { "BYUL_API_KEY": "byul_xxxxxxxxxxxxx" }
}
}
}
claude mcp add -e BYUL_API_KEY=byul_xxxxxxxxxxxxx --scope user byul npx -- -y @byul/mcp
{
"mcpServers": {
"byul": {
"command": "npx",
"args": ["-y", "@byul/mcp"],
"env": { "BYUL_API_KEY": "byul_xxxxxxxxxxxxx" }
}
}
}
{
"mcpServers": {
"byul": {
"command": "npx",
"args": ["-y", "@byul/mcp"],
"env": { "BYUL_API_KEY": "byul_xxxxxxxxxxxxx" }
}
}
}
{
"mcpServers": {
"byul": {
"command": "npx",
"args": ["-y", "@byul/mcp"],
"env": { "BYUL_API_KEY": "byul_xxxxxxxxxxxxx" }
}
}
}
{
"mcpServers": {
"mcp-server-byul": {
"command": "npx",
"args": ["-y", "@byul/mcp"],
"env": {
"BYUL_API_KEY": "byul_xxxxxxxxxxxxx"
}
}
}
}
~/.gemini/settings.json
:
{
"mcpServers": {
"byul": {
"command": "npx",
"args": ["-y", "@byul/mcp"],
"env": { "BYUL_API_KEY": "byul_xxxxxxxxxxxxx" }
}
}
}
If the mcpServers
object does not exist, create it. This package supports stdio (local) transport only.
-
Missing API key
- Error example:
Missing BYUL_API_KEY environment variable
- Fix: set
BYUL_API_KEY
in your environment before launching the server
- Error example:
-
Corporate proxy / firewall
npx
must reach the registry to download@byul/mcp
on first run; configure your proxy settings accordingly
-
Windows / WSL path and env
- PowerShell example:
$env:BYUL_API_KEY = "byul_xxxxxxxxxxxxx" npx -y @byul/mcp
- PowerShell example:
-
Transport scope
- This package covers only stdio transport. HTTP/SSE transports are intentionally not covered in this guide.
Compliant with the latest Model Context Protocol (MCP) specification.