That's one kind of MCP. Another is a local stdio server.
Also there are things like subagents, etc (which may be considered tools).