How to Creat Tag Provider by Script

In 8.3, you'll be able to do so. Don't expect a first party scripting solution in 8.1.