agentsclimarketplace

Alpha vantage mcp

Skill 0xgetz/xi-agent-skills/mcp-skills/alpha-vantage-mcp

Skills and connected MCP server documentation exported from my agent.

Install
npx -y skills add 0xgetz/xi-agent-skills --skill alpha-vantage-mcp

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

2 things to look at

  • no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
  • 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

What its author says it does

Copied from the file, not written here

Use the Alpha Vantage MCP integration to fetch stock and crypto market data. Activate when the user wants to fetch stock and crypto market data via Alpha Vantage, including discovering the right tool, building parameters, and handling results.

SKILL.md

4.1 KB, as published. Nobody here has run it

Alpha_Vantage MCP Integration

Overview

This skill covers working with the Alpha_Vantage integration via the MCPClient from lib.gumloop_mcp. The MCPClient wraps the Gumloop MCP transport layer with automatic retries, error handling, and typed responses. Use it for all Alpha Vantage financial data operations.

When to use this skill

Activate when the user wants to query, create, update, or manage Alpha Vantage financial data using the Gumloop MCP connection to alpha_vantage.

Client Setup

from lib.gumloop_mcp import MCPClient

client = MCPClient()
# The client auto-resolves credentials from the agent's connected integrations.
# No API keys or tokens to configure manually.

Error Handling & Retries

All MCP calls should use this pattern:

def safe_call(client, server, tool, params, max_retries=3):
    """Call an MCP tool with retry and error handling."""
    import time
    for attempt in range(max_retries):
        try:
            result = client.call(server, tool, params)
            error = getattr(result, 'error', None)
            if error:
                if attempt < max_retries - 1:
                    time.sleep(2 ** attempt)
                    continue
                raise RuntimeError('MCP call failed: ' + str(error))
            return result
        except Exception as exc:
            if attempt < max_retries - 1:
                time.sleep(2 ** attempt)
                continue
            raise

GET-First Pattern

Always read the current state before modifying:

# Fetch current state first with retry
current = safe_call(client, 'alpha_vantage', 'get_stock_quote', 'get_stock_quote', {'symbol': 'AAPL'})
print('Current state:', current)

Read Operations

from lib.gumloop_mcp import MCPClient

client = MCPClient()

# Fetch data with retry
result = safe_call(client, 'alpha_vantage', 'get_stock_quote', 'get_stock_quote', {'symbol': 'AAPL'})
print('Result:', result)

Write Operations

This service is read-only via the Gumloop MCP connector. Data cannot be created or modified through native tools. For write-capable alternatives, see the Artificial API / REST Fallback section below.

Artificial API / REST Fallback

alpha_vantage does not have a native Gumloop MCP connector. Use raw requests + os.environ with a bound secret for write operations:

import os
import requests

# Get API key from bound secrets
api_key = os.environ.get('FALLBACK_API_KEY')
if not api_key:
    raise RuntimeError('Missing FALLBACK_API_KEY - use bind_env_vars first')

# Call the native REST API directly
response = requests.get(
    'https://www.alphavantage.co/documentation/',
    headers={'Authorization': 'Bearer ' + api_key, 'Accept': 'application/json'}
)
response.raise_for_status()
data = response.json()

Safety Notes

  • Always read first before modifying any resource (GET-first pattern).
  • Confirm destructive operations: deletes, destroys, removals, and any irreversible actions must be confirmed with the user.
  • Never log credentials: MCPClient handles auth transparently. Do not print or log secrets.
  • Respect rate limits: Use the retry pattern above. Back off exponentially on 429 responses.
  • Paginate large sets: Use limit, page, or cursor parameters where available.
  • Idempotency: Write/create calls should be idempotent when possible to avoid duplicates on retry.

API Documentation


This skill is part of the Gumloop MCP integration suite. Tool names and schemas vary by deployment. Always rely on live discovery, not assumptions.

Keep looking

Skills are one crate of 328,083. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.