# How to Dynamically Create MCP Servers with FastMCP

DevFeed: [How to Dynamically Create MCP Servers with FastMCP](<https://devfeed.tech/articles/how-to-dynamically-create-mcp-servers-with-fastmcp-30853.md>)

Original publisher: [Read original article](<https://www.packetcoders.io/how-to-dynamically-create-mcp-servers-with-fastmcp-2/>)

Author: Rick Donato

Published: 2026-07-03T08:00:52Z

Content type: tutorial

Language: en

Sources: [Packet Coders - Learn Network Automation](<https://devfeed.tech/sources/packet-coders-learn-network-automation.md>)

Topics: [Model Context Protocol](<https://devfeed.tech/topics/model-context-protocol.md>), [REST API](<https://devfeed.tech/topics/rest-api.md>), [NetBox](<https://devfeed.tech/topics/netbox.md>), [OpenAPI Specification](<https://devfeed.tech/topics/openapi.md>), [Large Language Model](<https://devfeed.tech/topics/llm.md>), [Server](<https://devfeed.tech/topics/server.md>)

Tags: [caching](<https://devfeed.tech/tags/caching.md>), [delete](<https://devfeed.tech/tags/delete.md>), [how-to](<https://devfeed.tech/tags/how-to.md>), [llms](<https://devfeed.tech/tags/llms.md>), [mcp](<https://devfeed.tech/tags/mcp.md>), [netbox](<https://devfeed.tech/tags/netbox.md>), [openapi](<https://devfeed.tech/tags/openapi.md>), [rest-api](<https://devfeed.tech/tags/rest-api.md>), [servers](<https://devfeed.tech/tags/servers.md>), [tips](<https://devfeed.tech/tags/tips.md>)

## AI overview

A tutorial showing how to dynamically create MCP servers with FastMCP by passing a REST API's OpenAPI schema to a function. Its example builds a NetBox MCP with read/write access, excludes DELETE endpoints, and caches the schema.

## Source excerpt

MCP has gained a huge amount of popularity. And for good reason, it's easy to use and can allow you to really harness the benefits of LLMs. So here's a quick MCP tip! Dynamically create MCP servers with FastMCP by passing a REST API's