How to Use the National Park Service MCP in Vercel AI SDK
Build lightning-fast park mapping apps that stream live National Park Service data directly to your Vercel AI SDK frontend.
Works with every AI agent you already use
…and any MCP-compatible client
Connect National Park Service MCP to Vercel AI SDK
Create your Vinkius account to connect National Park Service to Vercel AI SDK and route execution through our secure gateway. The platform manages server hosting, runtime updates, and security layers. Configuration requires no manual server provisioning.
Stream live park alerts with Vercel AI SDK
Your users don't want to wait for a loading spinner when checking if Yosemite is closed. By hooking this National Park Service MCP server into your `streamText` call, you can stream real-time updates from `list_alerts` directly into your React components as the agent fetches them. This means the moment a user asks about active fires or road closures, the UI renders the warning blocks immediately. You bypass the typical lag of backend-to-frontend handshakes by letting the Vercel AI SDK handle the raw tool output from `list_parks` and `list_alerts` on the fly.
Map active campsites in real-time
Forget static lists that go out of date the second a ranger closes a road. This setup lets your agent call `list_campgrounds` and `list_visitor_centers` to feed live location coordinates straight into your Edge Functions. The Vercel AI SDK processes these JSON payloads instantly, letting your custom UI components paint active campsite maps without blocking the main thread. You get a live, responsive map of park assets rendering piece by piece as the data flows from the federal database.
Inject streaming park webcams into your chat
Give your users a direct window into the backcountry by combining `list_webcams` with your streaming chat interface. Your agent identifies the requested park, pulls the active stream URLs, and pushes them to the client before the full text response even finishes generating. Using the SDK's tool call handling, you can catch the webcam metadata early and mount video players instantly. It turns a boring text-based chat about weather into a visual dashboard showing live conditions at the Grand Canyon or Yellowstone.
Set up National Park Service MCP in Vercel AI SDK
Prerequisites
- Node.js 18+ and a TypeScript project
-
ai+@modelcontextprotocol/sdkpackages - Active Vinkius subscription with a valid endpoint token
- 1
Install dependencies
Run
npm install ai @modelcontextprotocol/sdkplus your preferred model provider (e.g.@ai-sdk/openai). - 2
Create the Streamable HTTP transport
Use
StreamableHTTPClientTransportwith your Vinkius endpoint URL. Replace[YOUR_TOKEN_HERE]with your token from cloud.vinkius.com. - 3
Discover and use tools
Call
mcpClient.tools()to auto-discover all National Park Service tools. Pass them directly togenerateText()orstreamText()— no manual schema definitions needed. - 4
Works with any model provider
Swap
openai("gpt-4o")for any AI SDK provider — Anthropic, Google, Mistral. The MCP tools work identically across all supported models.
import { experimental_createMCPClient as createMCPClient } from "ai";
import { StreamableHTTPClientTransport } from "@modelcontextprotocol/sdk/client/streamableHttp";
import { generateText } from "ai";
import { openai } from "@ai-sdk/openai";
const transport = new StreamableHTTPClientTransport(
new URL("https://edge.vinkius.com/[YOUR_TOKEN_HERE]/mcp")
);
const mcpClient = await createMCPClient({ transport });
const tools = await mcpClient.tools();
const { text } = await generateText({
model: openai("gpt-4o"),
tools,
prompt: "List recent National Park Service transactions",
});
console.log(text);
await mcpClient.close(); Independent Platform Disclaimer: Vinkius is an independent platform and is not affiliated with, endorsed by, sponsored by, verified by, or otherwise authorized by National Park Service. All third-party trademarks, logos, and brand names are the property of their respective owners. Their use on this website is strictly for informational purposes to identify service compatibility and interoperability.
Why Choose Vinkius
Vinkius connects your tools to AI with real-time monitoring and automatic cost savings — all from one dashboard.
Real-time monitoring
Live
visibility into every interaction
Connect your favorite tools to your AI and see exactly what's happening — every request, every response, in real time.
Built-in savings
60%
lower AI costs
Vinkius compresses data between your apps and your AI automatically. Lower bills every month — no configuration required.
Single dashboard
One
place for every integration
Every tool your AI connects to, managed from a single screen. One account, complete control.
Common questions about National Park Service MCP in Vercel AI SDK
Use it with your favorite AI tools
Connect this server to Cursor, Claude, VS Code, and more.
Start using the National Park Service MCP today
We host it, we monitor it, we maintain it. You just paste one token.