How this page was checked: The configuration was checked against the client's own documentation on 3 December 2026. The server was tested with the official MCP TypeScript client against the AstroNode API running in memory: every one of the 105 calculation tools that has a sample input answered, and each tool call was counted as exactly one API call. The client application itself was not part of that test.
Hosted server
In .vscode/mcp.json (or your user-profile mcp.json) - note that VS Code's key is servers, not mcpServers:
{
"inputs": [
{
"type": "promptString",
"id": "astronode-key",
"description": "AstroNode API key",
"password": true
}
],
"servers": {
"astronode": {
"type": "http",
"url": "https://mcp.astronode.dev/mcp",
"headers": { "Authorization": "Bearer ${input:astronode-key}" }
}
}
}VS Code asks for the key when it first starts the server. The input fields work in .vscode/mcp.json and the user-profile file.
Local server
{
"inputs": [
{ "type": "promptString", "id": "astronode-key", "description": "AstroNode API key", "password": true }
],
"servers": {
"astronode": {
"type": "stdio",
"command": "npx",
"args": ["-y", "@astronode/mcp"],
"env": { "ASTRONODE_API_KEY": "${input:astronode-key}" }
}
}
}Sharing the setup with a team
Because the key comes from an input rather than the file, .vscode/mcp.json can be committed: everyone who opens the workspace gets the server and is asked for their own key. That keeps usage on each developer's key instead of one shared key whose quota the whole team spends.
Use test keys (aie_test_) for development. On the Free plan a key reaches the Free endpoints - the birth chart, Vimshottari dasha and Mangal dosha among them; other tools return PLAN_REQUIRED with the plan they need, which the agent can relay.
Billing and tool count
Each tool call is one API call on the key's plan; listing tools is free. To offer the agent fewer than 128 tools, add ?groups= to the URL or set ASTRONODE_MCP_GROUPS in env. The groups are on the MCP server page.
Questions
- Which AstroNode endpoints does the VS Code example call?
- 3 endpoints: Birth Chart (Kundli) (
POST /v1/charts/birth); Panchang (POST /v1/panchang); Vimshottari Dasha (POST /v1/dasha/vimshottari). - Was the VS Code code on this page actually run?
- The configuration was checked against the client's own documentation on 3 December 2026. The server was tested with the official MCP TypeScript client against the AstroNode API running in memory: every one of the 105 calculation tools that has a sample input answered, and each tool call was counted as exactly one API call. The client application itself was not part of that test.