Guides /
Connect a financial data MCP server to Claude Code
Claude Code adds MCP servers with claude mcp add. The examples use The Inference's server; swap in the URL or command of any server in the directory.
A hosted server with an API key
claude mcp add --transport http the-inference https://theinference.org/api/mcp \
--header "Authorization: Bearer $INFERENCE_KEY"$INFERENCE_KEY is expanded by your shell when you run the command, so the key itself is what gets saved. Some servers take the key in the URL instead, as Alpha Vantage does; quote the URL so the shell leaves the ? alone.
A hosted server that signs you in
claude mcp add --transport http massive https://mcp.massive.com/Then type /mcp inside Claude Code, pick the server and sign in in the browser window it opens.
A local server
Everything after -- is the command Claude Code runs to start the server. Pass keys with -e:
claude mcp add octagon -e OCTAGON_API_KEY=your_key -- npx -y octagon-mcpChoose who sees it
--scope (-s) decides where the server is saved: local (the default, this project, only you), user (all your projects) or project (a .mcp.json file in the repo, shared with your team). Keep keys out of .mcp.json if you commit it.
Check that it worked
claude mcp listlists each server and whether it connected. Inside a session, /mcp shows the same and the tools each server offers. Then ask a question the tools can answer, such as "Who are Nvidia's largest institutional holders?", and Claude will call them.